Re: [whatwg/streams] Why does call to pipeThrough throw Uncaught TypeError: Cannot convert undefined or null to object? (#754)

Seems legit behavior. `pipeThrough` expect an object with `writable` and `readable` properties, but `TextDecoder` doesn't have any of them, so it can't work. I guess the example proposes a future improvement of TextDecoder to support streams.
Chrome is not totally up-to-date with the specs (because it is not finalized yet), you should use the [implementation](https://github.com/whatwg/streams/tree/master/reference-implementation/lib).

-- 
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/754#issuecomment-317238174

Received on Sunday, 23 July 2017 08:43:06 UTC