- From: Jake Archibald <notifications@github.com>
- Date: Wed, 23 Aug 2017 09:24:46 +0000 (UTC)
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 23 August 2017 09:25:08 UTC
> I think there's a general principle that invoking a getter should be safe. And it would also mean that `obj.trailer != obj.trailer` which is also bad. Hmm, that wasn't my intention. `.trailer` always returns the same promise, and rejecting rejects the existing promise. Although, I think there's some existing weirdness here. Eg, the `Response` constructor always resolves the trailer promise ([step 11](https://fetch.spec.whatwg.org/#dom-response)), so it can't be later resolved with something else, as it tries to in the fetch method. As in, with the existing fetch spec, you'll never receive trailers. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/523#issuecomment-324273391
Received on Wednesday, 23 August 2017 09:25:08 UTC