- From: Adam Rice <notifications@github.com>
- Date: Fri, 31 Mar 2017 04:36:54 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 31 March 2017 11:37:25 UTC
ricea commented on this pull request. > WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, releasedError); - if (state === 'writable' || WritableStreamHasOperationMarkedInFlight(stream) === true) { - defaultWriterClosedPromiseReject(writer, releasedError); - } else { - defaultWriterClosedPromiseResetToRejected(writer, releasedError); - } - writer._closedPromise.catch(() => {}); + // The state transitions to "errored" before the sink abort() method runs, but the writer.closed promise is not + // rejected until afterwards. This means that simply testing state will not work Done -- 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/721#discussion_r109141729
Received on Friday, 31 March 2017 11:37:25 UTC