src: expose LookupAndCompile with parameters#45142
Closed
codebytere wants to merge 1 commit intonodejs:mainfrom
Closed
src: expose LookupAndCompile with parameters#45142codebytere wants to merge 1 commit intonodejs:mainfrom
LookupAndCompile with parameters#45142codebytere wants to merge 1 commit intonodejs:mainfrom
Conversation
Collaborator
|
Review requested:
|
LookupAndCompile with parameters
joyeecheung
approved these changes
Oct 24, 2022
juanarbol
approved these changes
Oct 24, 2022
addaleax
reviewed
Oct 25, 2022
d4d1c3a to
5f9feee
Compare
legendecas
approved these changes
Oct 31, 2022
5f9feee to
3b0d0e1
Compare
Collaborator
3b0d0e1 to
1fc633a
Compare
Collaborator
This was referenced Nov 11, 2022
jasnell
approved these changes
Nov 16, 2022
Collaborator
Contributor
|
This needs rebase. |
Member
Author
|
Superseded by #53886 |
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.
Refs #44018.
This PR exposes a version of
LookupAndCompilethat takes parameters instead of detecting them based on module IDs.Electron currently maintains a wrapper to
LookupAndCompile, which specifically requires parameters because we pass our own modules toLookupAndCompilein several places:shell/common/api/electron_api_asar.ccshell/renderer/electron_sandboxed_renderer_client.ccshell/renderer/renderer_client_base.ccand therefore need to be able to able to expose the ability to set that.
I do, however, see that Node.js recently added back a version of
CompileAndCallwhich is effectively the same as our ownCompileAndCallwrapper, so if it would be better to modify that to allow parameters I would also be happy to take that path.