[whatwg/streams] Add a brand check to pipeThrough() (#966)

Require pipeThrough() to be called on a ReadableStream. Stop delegating to
this.pipeTo().

Also throw exceptions if *this* or _writable_ are not streams or they are
locked, or if *signal* is not an AbortSignal. Also require _readable_ to be a
ReadableStream.

Add a new abstract operation, ReadableStreamPipeTo(), which is used internally
by pipeTo() and pipeThrough() and also can be referenced from other
standards.

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

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

-- Commit Summary --

  * Add a brand check to pipeThrough()

-- File Changes --

    M index.bs (249)
    M reference-implementation/lib/readable-stream.js (410)
    M reference-implementation/web-platform-tests (2)

-- Patch Links --

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

Received on Thursday, 22 November 2018 14:54:07 UTC