- From: Ben Kelly <notifications@github.com>
- Date: Mon, 27 Jun 2016 13:30:21 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc:
Received on Monday, 27 June 2016 20:31:00 UTC
In ReadableByteStreamControllerClose step 5 and 6 are:
```
5. Let firstPendingPullInto be the first element of controller.[[pendingPullIntos]].
6. If ! ReadableStreamHasBYOBReader(stream) is true, controller.[[pendingPullIntos]]
is not empty, and firstPendingPullInto.[[bytesFilled]] > 0.
```
It seems like step 5 could trigger a range error if pendingPullIntos is empty and has no first element. Should we be checking the length of the List before trying to access the first element?
---
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/470
Received on Monday, 27 June 2016 20:31:00 UTC