[whatwg/streams] WritableStream abort logic clean up (#655)

This patch factors out the code to handle fulfillment/rejection of sink write and sink close operation into separate methods to make it easier to follow the code and check the correctness of the logic.

This patch also clarifies the interface boundary, i.e. factoring out operations that are exposed by the WritableStream to controllers.

This PR is recreation of #640.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * WritableStream abort logic clean up

-- File Changes --

    M reference-implementation/lib/writable-stream.js (358)
    M reference-implementation/to-upstream-wpts/writable-streams/aborting.js (5)
    M reference-implementation/to-upstream-wpts/writable-streams/close.js (93)

-- Patch Links --

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

Received on Monday, 16 January 2017 09:05:12 UTC