[whatwg/streams] new ReadableStream({type: 'bytes'}, new CountQueuingStrategy({highWaterMark: 5})) is weird (#729)

If you see CountQueuingStrategy when constructing a ReadableStream, you might expect it to be setting the queue size in chunks. But if `type` is `"bytes"`, it sets the queue size in bytes instead.

I was discussing this with @domenic and we concluded that new ReadableStream() should probably throw if the strategy passed to a byte stream has a size function.

-- 
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/729

Received on Thursday, 6 April 2017 14:32:41 UTC