[whatwg/streams] Add controller arguments to sink write and close (#538)

Previously the controller was only passed to the start() method of a
WritableStream sink. It can be convenient to omit the start() method if
no processing is needed. Pass the controller argument to the write() and
close() methods so that it can be used without implementing start().
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add controller arguments to sink write and close

-- File Changes --

    M index.bs (21)
    M reference-implementation/lib/writable-stream.js (7)
    M reference-implementation/test/writable-stream-abort.js (2)
    M reference-implementation/to-upstream-wpts/writable-streams/close.js (10)
    M reference-implementation/to-upstream-wpts/writable-streams/constructor.js (32)

-- Patch Links --

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

Received on Friday, 14 October 2016 07:27:49 UTC