Re: [streams] [WIP] Putting a chunk back in the readable stream queue (#275)

> @@ -159,6 +159,42 @@ export function IsReadableStream(x) {
>    return true;
>  }
>  
> +export function PutBackIntoReadableStream(stream, chunk) {
> +  if (stream._state === 'closed') {
> +    throw new TypeError('stream is closed');

I'm a bit worried about if not supporting this corner case would be problematic for any use case.

Maybe it happens for the MSE's case, too? All data is read, but we have _remaining data_ we want to put back.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/275/files#r24166121

Received on Thursday, 5 February 2015 14:31:49 UTC