- From: isonmad <notifications@github.com>
- Date: Sat, 15 Oct 2016 12:14:27 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Saturday, 15 October 2016 19:14:56 UTC
isonmad commented on this pull request.
>
preventClose = Boolean(preventClose);
preventAbort = Boolean(preventAbort);
preventCancel = Boolean(preventCancel);
- const source = this;
+ const reader = AcquireReadableStreamDefaultReader(this);
+ const writer = AcquireWritableStreamDefaultWriter(dest);
Why do the brand checks above return a rejected promise (instead of throwing synchronously), when `AcquireReadableStreamDefaultReader` and `AcquireWritableStreamDefaultWriter` might throw synchronously anyway if either stream is already locked? Shouldn't either all of these throw, or all of these be promises?
--
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/streams/pull/512#pullrequestreview-4377881
Received on Saturday, 15 October 2016 19:14:56 UTC