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

Previously, controller.error() and some other things could cause the state to
change to 'errored' while un underlying sink operation was in flight.

Make all state changes happen while no underlying sink operations are in
flight. All errors now behave similarly to abort(). The first error to happen
sets the [[storedError]] internal slot, regardless of type.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/721

-- Commit Summary --

  * Unified error handling for WritableStream

-- File Changes --

    M reference-implementation/lib/writable-stream.js (334)
    M reference-implementation/web-platform-tests (2)

-- Patch Links --

https://github.com/whatwg/streams/pull/721.patch
https://github.com/whatwg/streams/pull/721.diff

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

Received on Thursday, 30 March 2017 16:58:15 UTC