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

[Backport v6.x] web: mark as uncloneable when possible (#3709) #3744

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

jazelly
Copy link
Member

@jazelly jazelly commented Oct 17, 2024

  • web: mark as uncloneable when possible

This tells node that the marked instances from undici are not cloneable, so that attempts to cloning those throw DataCloneError.

  • test: add test cases for platform objects uncloneable

  • fix: move to webidl

  • fix: move it under webidl

  • fixup: rename it to markAsUncloneable

  • fix: mark more web instances uncloneable

  • fixup


Co-authored-by: Khafra [email protected]
(cherry picked from commit 1ab2382)

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

* web: mark as uncloneable when possible

This tells node that the marked instances from undici are not cloneable,
so that attempts to cloning those throw `DataCloneError`.

* test: add test cases for platform objects uncloneable

* fix: move to webidl

* fix: move it under webidl

* fixup: rename it to markAsUncloneable

* fix: mark more web instances uncloneable

* fixup

---------

Co-authored-by: Khafra <[email protected]>
(cherry picked from commit 1ab2382)
Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

RSLGTM

@mcollina mcollina merged commit e2e3fd2 into nodejs:v6.x Oct 17, 2024
28 of 29 checks passed
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.

4 participants