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

fix(runtime): don't error child.output() on consumed stream #25657

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

lucacasonato
Copy link
Member

This fixes the fast path for readableStreamCollectIntoUint8Array to only
trigger if the readable stream has not yet been disturbed - because otherwise we
may not be able to close it if the read errors.

Fixes #22621

This fixes the fast path for `readableStreamCollectIntoUint8Array` to only trigger if the readable stream has not yet been disturbed - because otherwise we may not be able to close it if the read errors.
Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

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

LGTM

@lucacasonato lucacasonato merged commit 74069ad into main Sep 16, 2024
17 checks passed
@lucacasonato lucacasonato deleted the child_output_consumed_stream branch September 16, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion failure in ext/web/06_streams.js when stream[_state] === 'closed'
3 participants