Skip to content

stream: make readable byte stream cloneable - #46437

Closed
KhafraDev wants to merge 3 commits into
nodejs:mainfrom
KhafraDev:make-readable-byte-cloneable
Closed

stream: make readable byte stream cloneable#46437
KhafraDev wants to merge 3 commits into
nodejs:mainfrom
KhafraDev:make-readable-byte-cloneable

Conversation

@KhafraDev

Copy link
Copy Markdown
Member

Allows cloning web byte ReadableStreams.

Fixes: #46296

@nodejs-github-botnodejs-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
Copy Markdown
MemberAuthor

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
returnmakeTransferable(this);

@debadree25

Copy link
Copy Markdown
Contributor

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

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ciPRs 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

@KhafraDev@debadree25@nodejs-github-bot