Re: [whatwg/streams] Factor out rejection handling logic from WritableStreamDefaultControllerProcessClose() (#640)

tyoshino commented on this pull request.



>    1. If _stream_.[[state]] is `"closing"`,
     1. <a>Resolve</a> _stream_.[[writer]].[[closedPromise]] with *undefined*.
     1. Set _stream_.[[state]] to `"closed"`.
   1. Otherwise,
     1. Assert: _stream_.[[state]] is `"errored"`.
     1. <a>Reject</a> _stream_.[[writer]].[[closedPromise]] with _stream_.[[storedError]].
     1. Set _stream_.[[writer]].[[closedPromise]].[[PromiseIsHandled]] to *true*.
+</emu-alg>
+
+<h4 id="writable-stream-finish-close-with-error" aoid="WritableStreamFinishCloseWithError" nothrow>WritableStreamFinishCloseWithError (

Fixed

-- 
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/640

Received on Thursday, 12 January 2017 08:34:22 UTC