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

stream: make readable byte stream cloneable #46437

Closed
wants to merge 3 commits into from

Conversation

KhafraDev
Copy link
Member

Allows cloning web byte ReadableStreams.

Fixes: #46296

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. web streams labels Jan 31, 2023
return;

// eslint-disable-next-line no-constructor-return
return makeTransferable(this);
Copy link
Member Author

Choose a reason for hiding this comment

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

btw this pattern is used right below this so I copied it from there, rather than separating onto separate lines.

// eslint-disable-next-line no-constructor-return
return makeTransferable(this);

@debadree25
Copy link
Member

is this and #45955 PR solving the same thing I think?

@KhafraDev KhafraDev closed this Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run. web streams
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Readable byte stream cannot be cloned with structuredClone
3 participants