[whatwg/streams] Fix pendingPullIntos access in ReadableByteStreamControllerClose() (#471)

The size of pendingPullIntos must be checked before getting the head of it.

As a bonus, this commit removes unnecessary ReadableStreamHasBYOBReader
checking.

Fixes #470
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/471

-- Commit Summary --

  * Fix pendingPullIntos access in ReadableByteStreamControllerClose()

-- File Changes --

    M index.bs (12)
    M reference-implementation/lib/readable-stream.js (16)

-- Patch Links --

https://github.com/whatwg/streams/pull/471.patch
https://github.com/whatwg/streams/pull/471.diff

---
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/pull/471

Received on Tuesday, 28 June 2016 08:16:34 UTC