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');

It seems the issue should be addressed by ReadableByteStream. I.e. specifying the `size` argument based on `maxSize`?

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

Received on Friday, 6 February 2015 06:05:56 UTC