[whatwg/streams] Add reader-type asserts to ReadableStream abstract operations (#1094)

Several ReadableStream abstract operations are only called with one particular type of reader. For clarity, it would be good to add assertions of what kind of reader they are called with.

A (hopefully complete) list of miscellaneous operations that assume the reader type:

ReadableStreamFulfillReadIntoRequest
ReadableStreamFulfillReadRequest
ReadableStreamGetNumReadIntoRequests
ReadableStreamGetNumReadRequests

Already have assertions:

ReadableStreamAddReadIntoRequest
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/1094

Received on Thursday, 3 December 2020 10:00:40 UTC