[whatwg/streams] ReadableStreamAddReadRequest() should assert state is readable (#454)

Currently `ReadableStreamAddReadRequest()` appends to the readers's `readRequests` list.  The `ReadableStreamClose()` function iterates this same list resolving its promises.  It would be nice to assert that we don't re-enter code that appends more items to this same list we are iterating.

I think the easiest way to do this is to add a state assertion in `ReadableStreamAddReadRequest()`.

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

Received on Wednesday, 25 May 2016 20:58:13 UTC