[v22.x backport] lib: convert transfer sequence to array in js#56015
Closed
jazelly wants to merge 1 commit intonodejs:v22.x-stagingfrom
Closed
[v22.x backport] lib: convert transfer sequence to array in js#56015jazelly wants to merge 1 commit intonodejs:v22.x-stagingfrom
jazelly wants to merge 1 commit intonodejs:v22.x-stagingfrom
Conversation
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>
Collaborator
|
Review requested:
|
Member
Author
|
cc @ruyadorno |
Collaborator
Contributor
|
Backported in 85b2cf0, thanks for opening the PR even though I ended up not using it |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit lets
tranferpassed tostructuredCloneget validated at JS layer by doing webidl conversion. This avoids the C++ to JS function call overhead in the native implementaiton ofstructuredClone