[whatwg/streams] Have WS's abort() fulfill, instead of reject, under error conditions (#901)

* If the stream is errored, abort() now returns a promise resolved with undefined, instead of returning a promise rejected with the stored error.
* If the stream has a pending abort, abort() now returns that pending abort's promise (which will eventually resolve with undefined, unless aborting fails), instead of returning a promise rejected with a TypeError.

Fixes #900.

Tests incoming.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Have WS's abort() fulfill, instead of reject, under error conditions

-- File Changes --

    M index.bs (5)
    M reference-implementation/lib/writable-stream.js (11)

-- Patch Links --

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

Received on Thursday, 8 March 2018 07:07:47 UTC