[streams] Allow enqueue after cancel, plus fix #314 (#326)

On top of #317.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add fine-grained flow control for readable stream
  * Ensure asserts are surfaced in the reference implementation
  * Fix assert in ErrorReadableStream being triggered sometimes
  * Allow enqueue after cancel
  * Fix #314: pipeTo return value with preventClose: true

-- File Changes --

    M index.bs (266)
    M reference-implementation/lib/byte-length-queuing-strategy.js (25)
    M reference-implementation/lib/count-queuing-strategy.js (25)
    M reference-implementation/lib/helpers.js (24)
    M reference-implementation/lib/readable-stream.js (112)
    A reference-implementation/lib/utils.js (12)
    M reference-implementation/lib/writable-stream.js (38)
    M reference-implementation/test/bad-underlying-sinks.js (175)
    M reference-implementation/test/bad-underlying-sources.js (242)
    M reference-implementation/test/brand-checks.js (20)
    M reference-implementation/test/byte-length-queuing-strategy.js (20)
    M reference-implementation/test/count-queuing-strategy.js (145)
    M reference-implementation/test/pipe-to-options.js (4)
    M reference-implementation/test/pipe-to.js (78)
    M reference-implementation/test/readable-stream.js (121)
    M reference-implementation/test/templated/readable-stream-closed.js (31)
    M reference-implementation/test/templated/readable-stream-two-chunks-closed.js (79)
    M reference-implementation/test/writable-stream.js (191)

-- Patch Links --

https://github.com/whatwg/streams/pull/326.patch
https://github.com/whatwg/streams/pull/326.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/326

Received on Friday, 10 April 2015 23:26:36 UTC