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

Editorial: call correct Release() depending on chosen reader in pipeTo() #1209

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

MattiasBuelens
Copy link
Collaborator

@MattiasBuelens MattiasBuelens commented Jan 18, 2022

The user agent is allowed to use a default reader or a BYOB reader for the pipe in step 8, but we always call ReadableStreamDefaultReaderRelease in the finalize steps. This is incorrect: we should use the appropriate Release() abstract op corresponding to the chosen reader. This PR fixes that.

(Before #1168, we had a single ReadableStreamReaderGenericRelease that worked for both. So this was a small regression.)


Preview | Diff

@domenic domenic merged commit 908cedd into whatwg:main Jan 18, 2022
@MattiasBuelens MattiasBuelens deleted the pipe-to-use-correct-release branch January 19, 2022 00:03
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.

2 participants