- From: Adam Rice <notifications@github.com>
- Date: Wed, 05 Apr 2017 03:04:03 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 5 April 2017 10:04:36 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]]). It makes sense to follow the ECMASCRIPT convention here. As long as the reader understands the "?" and "!" notation, they should be able to make sense of it. -- 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_r109876897
Received on Wednesday, 5 April 2017 10:04:36 UTC