Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for interaction between autoAllocateChunkSize and respondWithNewView #1216

Conversation

MattiasBuelens
Copy link
Collaborator

@MattiasBuelens MattiasBuelens commented Feb 8, 2022

Node had a bug in their readable byte streams implementation when using respondWithNewView() on an auto-allocated BYOB request, see nodejs/node#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.)

Copy link
Collaborator

@ricea ricea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@domenic domenic merged commit ac3dca9 into whatwg:main Feb 9, 2022
@MattiasBuelens MattiasBuelens deleted the test-respondwithnewview-autoallocatechunksize branch February 10, 2022 00:12
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 26, 2022
…locateChunkSize and respondWithNewView, a=testonly

Automatic update from web-platform-tests
Test interaction between autoAllocateChunkSize and respondWithNewView (#32757)

See whatwg/streams#1216 for context.

Upstreamed from nodejs/node#41887.
--

wpt-commits: 6a46d9cb8d20c510a620141c721b81b460a4ee55
wpt-pr: 32757
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Mar 1, 2022
…locateChunkSize and respondWithNewView, a=testonly

Automatic update from web-platform-tests
Test interaction between autoAllocateChunkSize and respondWithNewView (#32757)

See whatwg/streams#1216 for context.

Upstreamed from nodejs/node#41887.
--

wpt-commits: 6a46d9cb8d20c510a620141c721b81b460a4ee55
wpt-pr: 32757
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 8, 2022
…locateChunkSize and respondWithNewView, a=testonly

Automatic update from web-platform-tests
Test interaction between autoAllocateChunkSize and respondWithNewView (#32757)

See whatwg/streams#1216 for context.

Upstreamed from nodejs/node#41887.
--

wpt-commits: 6a46d9cb8d20c510a620141c721b81b460a4ee55
wpt-pr: 32757
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Mar 8, 2022
…locateChunkSize and respondWithNewView, a=testonly

Automatic update from web-platform-tests
Test interaction between autoAllocateChunkSize and respondWithNewView (#32757)

See whatwg/streams#1216 for context.

Upstreamed from nodejs/node#41887.
--

wpt-commits: 6a46d9cb8d20c510a620141c721b81b460a4ee55
wpt-pr: 32757
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants