whatwg / streams

Streams Standard
https://streams.spec.whatwg.org/
Other
1.34k stars 157 forks source link

Add tests for interaction between autoAllocateChunkSize and respondWithNewView #1216

Closed MattiasBuelens closed 2 years ago

MattiasBuelens commented 2 years ago

Node had a bug in their readable byte streams implementation when using respondWithNewView() on an auto-allocated BYOB request, see https://github.com/nodejs/node/issues/41886. Although the specification and the reference implementation handle this use case correctly, it was not covered by any of the existing web platform tests, and thus can be easily missed.

This adds tests for the (already specified) expected behavior, to increase test coverage. There are no normative changes.

(See WHATWG Working Mode: Changes for more details.)