Re: [whatwg/streams] Unified error handling for WritableStream (#721)

ricea commented on this pull request.



> @@ -405,7 +383,7 @@ class WritableStreamDefaultWriter {
     const state = stream._state;
 
     if (state === 'writable') {
-      if (stream._pendingAbortRequest !== undefined) {
+      if (stream._pendingError === true) {
         const error = new TypeError('Requested to abort');

It's also consistent with the 'errored' state, so I've gone with that.

-- 
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_r109141742

Received on Friday, 31 March 2017 11:37:30 UTC