[whatwg/streams] Add checks before Close and Enqueue in tee() (#1027)

ReadableStream.prototype.tee didn't check CanCloseOrEnqueue() before
calling Close() or Enqueue(), violating the interface contract. Add
checks of CanCloseOrEnqueue() to fix it.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add checks before Close and Enqueue in tee()

-- File Changes --

    M index.bs (12)
    M reference-implementation/lib/readable-stream.js (12)

-- Patch Links --

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

Received on Monday, 3 February 2020 10:38:33 UTC