[whatwg/streams] Aborting a stream should wait for pending writes (#619)

This is a work-in-progress for #611.

I haven't updated the standard language to match yet. I would like to get an initial round of feedback on the changes before I do that.

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

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

-- Commit Summary --

  * Make an abort() not abort a sink write()
  * Make the remaining failing tests pass
  * Make the write() promise fail if transform() throws
  * Ensure .closed does not not resolve before write()
  * Ensure that write() promises resolve in order
  * Remove unnecessary variable declaration

-- File Changes --

    M reference-implementation/lib/transform-stream.js (5)
    M reference-implementation/lib/writable-stream.js (80)
    M reference-implementation/to-upstream-wpts/piping/error-propagation-backward.js (5)
    M reference-implementation/to-upstream-wpts/writable-streams/aborting.js (85)
    M reference-implementation/to-upstream-wpts/writable-streams/constructor.js (2)

-- Patch Links --

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

Received on Tuesday, 22 November 2016 13:33:13 UTC