Skip to content

Conversation

@regseb
Copy link
Contributor

@regseb regseb commented May 10, 2022

Add structuredClone for browser (and shared-node-browser).

Copy link

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

it's also available in node.js/worker?

@regseb
Copy link
Contributor Author

regseb commented May 11, 2022

it's also available in node.js/worker?

The MDN compatibility indicates that structuredClone isn't available in Node.js workers.

@aladdin-add
Copy link

well, I see. and it's has been added to node.js in #182.

Copy link

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM~

@sindresorhus sindresorhus merged commit 2efa3d0 into sindresorhus:main May 12, 2022
@regseb regseb deleted the structuredclone branch May 12, 2022 07:48
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.

3 participants