[whatwg/streams] throw instead of returning Promise.reject() from handlers (#819)

Where a fulfillment or rejection handler returned Promise.reject(), throw
instead. This should result in simpler standard text.

Also remove one unneeded return of Promise.resolve() from a fulfillment
handler.

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

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

-- Commit Summary --

  * throw instread of returning Promise.reject() from handlers

-- File Changes --

    M reference-implementation/lib/transform-stream.js (9)

-- Patch Links --

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

Received on Monday, 2 October 2017 14:36:37 UTC