[whatwg/streams] Access to reader.readIntoRequests withtout checking reader type (#686)

In ReadableByteStreamControllerRespondInClosedState [1], ReadableStreamGetNumReadIntoRequests is called and checks reader.readIntoRequests, but it is not checked that the reader is a BYOBReader.

This could be checked based on firstDescriptor.readerType, but the purpose of the loop (step 4) may be the processing of all pendingPullIntos objects, in which case I'm not sure the test that involves the number of readIntoRequests is the right one (I may not get all the context here).

[1] https://streams.spec.whatwg.org/#readable-byte-stream-controller-respond-in-closed-state

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

Received on Thursday, 23 February 2017 18:23:50 UTC