Re: [whatwg/streams] Factor out condition to check pending operation (#672)

domenic commented on this pull request.



>      writer._closedPromise.catch(() => {});
   }
 }
 
-function WritableStreamRejectPromisesInReactionToError(stream) {
+function WritableStreamRejectPromisesInReactionToError(stream, reason) {

I think it is significantly clearer if we use [[storedError]]; I'd really prefer having a single canonical location where the error is stored and making it clear that the stored error is always the error that these rejections happen with.

-- 
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/672#discussion_r104998880

Received on Wednesday, 8 March 2017 19:18:20 UTC