Re: [whatwg/streams] reader.read() inside strategy.size() doesn't work (#794)

A related issue that makes me even more uncomfortable is that if you call `controller.close()` from inside `size()` with no chunks queued then the stream will be closed but the chunk will be added to the queue, and be stuck there. This violates expectations about the consistency of the internal state. I haven't found a way to make it throw an assertion, mostly because a closed ReadableStream won't do anything at all.

-- 
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/794#issuecomment-329064581

Received on Wednesday, 13 September 2017 05:40:52 UTC