- From: Adam Rice <notifications@github.com>
- Date: Wed, 05 Apr 2017 23:09:04 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 6 April 2017 06:09:37 UTC
ricea commented on this pull request. > +<emu-alg> + 1. Assert: _stream_.[[state]] is `"erroring"`. + 1. Assert: ! WritableStreamHasOperationMarkedInFlight(_stream_) is *false*. + 1. Set _stream_.[[state]] to `"errored"`. + 1. Perform ! _stream_.[[writableStreamController]].[[ErrorSteps]](). + 1. Let _storedError_ by _stream_.[[storedError]]; + 1. Repeat for each _writeRequest_ that is an element of _stream_.[[writeRequests]], + 1. <a>Reject</a> _writeRequest_ with _storedError_. + 1. Set _stream_.[[writeRequest]] to an empty List. + 1. if _stream_.[[pendingAbortRequest]] is *undefined*, + 1. Perform ! WritableStreamRejectCloseAndClosedPromiseIfNeeded(_stream_). + 1. Return. + 1. Let _abortRequest_ by _stream_.[[pendingAbortRequest]]. + 1. Set _stream_.[[pendingAbortRequest]] to *undefined*. + 1. Let _promise_ be stream.[[writableStreamController]].[[AbortSteps]](_abortRequest_.[[reason]]). + 1. <a>Upon fulfillment</a> of _promise_, <a>resolve</a> _abortRequest_.[[promise]] with *undefined*. Fixed here and in [[StartSteps]]. -- 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_r110084562
Received on Thursday, 6 April 2017 06:09:37 UTC