- From: Adam Rice <notifications@github.com>
- Date: Tue, 24 Jan 2017 00:56:32 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 24 January 2017 08:57:15 UTC
ricea commented on this pull request. > 1. Let _controller_ be _stream_.[[writableStreamController]]. 1. Assert: _controller_ is not *undefined*. - 1. If _controller_.[[writing]] is *true* or _controller_.[[inClose]] is *true*, - 1. Set _stream_.[[pendingAbortRequest]] to <a>a new promise</a>. - 1. If _controller_.[[writing]] is *true*, return the result of <a>transforming</a> _stream_.[[pendingAbortRequest]] - with a fulfillment handler that returns ! WritableStreamDefaultControllerAbort(_controller_, _reason_). - 1. Otherwise, return _stream_.[[pendingAbortRequest]]. - 1. Return ! WritableStreamDefaultControllerAbort(_controller_, _reason_). + 1. If _state_ is `"writable"` and ! WritableStreamDefaultControllerGetBackpressure(_stream_.[[writableStreamController]]) is *true*, let _readyPromiseIsPending_ be *true*. This construction bothers me a bit because my brain interprets it as the declaration of the variable happening inside the if statement. However, I don't have a better idea. Feel free to disregard this comment. -- 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/655#pullrequestreview-18108992
Received on Tuesday, 24 January 2017 08:57:15 UTC