- From: Adam Rice <notifications@github.com>
- Date: Tue, 06 Nov 2018 20:08:12 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 7 November 2018 04:08:33 UTC
Currently `pipeThrough()` operates generically on **this**. It performs no brand check, and will attempt to call `this.pipeTo()` regardless of whether **this** is a ReadableStream or not. Blink is currently changing its streams implementation to use IDL, and there's no way to directly express this in IDL. We will need some workaround to pass the tests. Having `pipeThrough()` be generic complicates the standard (because we have to check if the return value of `pipeTo()` is a Promise), and complicates IDL-based implementations. I think it doesn't provide much value, and the easiest thing to do would be to add a brand check and make it call an abstract PipeTo operation internally. @domenic, what do you think? -- 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/issues/961
Received on Wednesday, 7 November 2018 04:08:33 UTC