- From: Domenic Denicola <notifications@github.com>
- Date: Fri, 24 Mar 2017 03:30:07 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 24 March 2017 10:30:43 UTC
domenic commented on this pull request. > const abortRequest = stream._pendingAbortRequest; stream._pendingAbortRequest = undefined; const promise = WritableStreamDefaultControllerAbort(stream._writableStreamController, abortRequest._reason); promise.then( abortRequest._resolve, abortRequest._reject ); + stream._backpressure = false; I think I have a fix that works by moving a tiny bit of the logic back out of WritableStreamError() and back to all the call sites except for WritableStreamFinishAbort. Uploading now-ish. Upon further consideration it's not so bad to use _pendingAbortRequest as such a signal. It's basically a stand-in for a state between "writable" and "errored" ("aborting" perhaps). And such a state is a reasonable thing to consult when talking about messing with the ready promise. -- 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/705#discussion_r107873759
Received on Friday, 24 March 2017 10:30:43 UTC