Re: [whatwg/streams] Reject pending reads when releasing reader (#1168)

I've added a few more tests to improve the test coverage on the reference implementation. The only new lines *not* covered are in `ReadableByteStreamControllerEnqueueClonedChunkToQueue`: https://github.com/whatwg/streams/blob/46b29e02c36abd8f7398c4e290527f5d9326c05d/reference-implementation/lib/abstract-ops/readable-streams.js#L1380-L1383

That's mainly because we don't have a good way to safely and predictably trigger an out-of-memory exception for `new ArrayBuffer()` or `buffer.slice()`. But this is also the case for all the other places where we allocate new `ArrayBuffer`s in the spec, so this is probably fine.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1168#issuecomment-1010370046
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/pull/1168/c1010370046@github.com>

Received on Tuesday, 11 January 2022 21:22:21 UTC