Re: [whatwg/encoding] Add Streams support (#72)

@ricea 

> I am assuming that `TextDecoder` will never be a subclass of `TransformStream`

It could be. If that isn't possible, there could be a behind-the-scenes `TransformStream` and its writable and readable are bound on `TextDecoder`. Turning `TextDecoder` into a full transform stream would be my preference, but maybe I'm missing the blocker.

Ideally `.decode`/`.encode` would be respecced to use the underlying transform stream. The tricky bit is (as far as I can tell) is allowing the legacy methods to synchronously return.

-- 
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/encoding/issues/72#issuecomment-251345088

Received on Tuesday, 4 October 2016 09:54:30 UTC