[whatwg/streams] Add TransformStreamDefaultController terminate() method (#818)

Replace close() with terminate(). In addition to closing the readable
side, terminate() also errors the writable side. This stops data from
being produced after we are no longer interested in it.

Modify existing tests to handle the new method, and add tests for the new
functionality.

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

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

-- Commit Summary --

  * Add TransformStreamDefaultController terminate() method

-- File Changes --

    M reference-implementation/lib/transform-stream.js (17)
    M reference-implementation/to-upstream-wpts/transform-streams/brand-checks.js (4)
    M reference-implementation/to-upstream-wpts/transform-streams/errors.js (4)
    M reference-implementation/to-upstream-wpts/transform-streams/general.js (14)
    M reference-implementation/to-upstream-wpts/transform-streams/reentrant-strategies.js (6)
    A reference-implementation/to-upstream-wpts/transform-streams/terminate.html (11)
    A reference-implementation/to-upstream-wpts/transform-streams/terminate.js (85)

-- Patch Links --

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

Received on Monday, 2 October 2017 13:59:18 UTC