[whatwg/streams] Make error() and terminate() do nothing when stream is errored (#826)

Previously error() and terminate() would throw an exception if the
readable was closed, errored or pending close. This wasn't useful, so
make them just do nothing in those cases instead.

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

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

-- Commit Summary --

  * Make error() and terminate() do nothing when stream is errored

-- File Changes --

    M reference-implementation/lib/transform-stream.js (12)
    M reference-implementation/to-upstream-wpts/transform-streams/errors.js (40)
    M reference-implementation/to-upstream-wpts/transform-streams/general.js (18)
    M reference-implementation/to-upstream-wpts/transform-streams/terminate.js (13)

-- Patch Links --

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

Received on Wednesday, 4 October 2017 16:34:20 UTC