FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[v22.x backport] lib: convert transfer sequence to array in js by jazelly · Pull Request #56015 · nodejs/node · GitHub

/ node Public

[v22.x backport] lib: convert transfer sequence to array in js - #56015

Closed
jazelly wants to merge 1 commit into
nodejs:v22.x-stagingfrom
jazelly:backport-55317
Closed

[v22.x backport] lib: convert transfer sequence to array in js#56015
jazelly wants to merge 1 commit into
nodejs:v22.x-stagingfrom
jazelly:backport-55317

Conversation

jazelly commented Nov 27, 2024
edited
Loading

Copy link
Copy Markdown
Member

This commit lets tranfer passed to structuredClone get validated at JS layer by doing webidl conversion. This avoids the C++ to JS function call overhead in the native implementaiton of structuredClone

This commit lets `tranfer` passed to `structuredClone` get validated at
JS layer by doing webidl conversion. This avoids the C++ to JS function
call overhead in the native implementaiton of `structuredClone`

PR-URL: nodejs#55317
Fixes: nodejs#55280
Refs: nodejs#50330
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/startup
  • @nodejs/web-standards

nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch. labels Nov 27, 2024

jazelly commented Nov 27, 2024

Copy link
Copy Markdown
Member Author

cc @ruyadorno

Copy link
Copy Markdown
Collaborator

aduh95 commented Nov 27, 2024

Copy link
Copy Markdown
Contributor

Backported in 85b2cf0f68b, thanks for opening the PR even though I ended up not using it

aduh95 closed this Nov 27, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL