[whatwg/streams] Remove _errored and _storedError from TransformStream (#800)

These slots are mostly redundant with the same state on the readable
side, so use the ReadableStream [[state]] and [[storedError]] instead to
reduce complexity.

It is possible for the readable to be "closed" where previously _errored
was set, but this doesn't make any practical difference as the
implementation threw a TypeError in both cases anyway.

TransformStreamError is renamed to TransformStreamDefaultControllerError to
better reflect its new semantics.

Closes #796.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Remove _errored and _storedError from TransformStream

-- File Changes --

    M reference-implementation/lib/transform-stream.js (75)

-- Patch Links --

https://github.com/whatwg/streams/pull/800.patch
https://github.com/whatwg/streams/pull/800.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/800

Received on Tuesday, 19 September 2017 07:35:33 UTC