-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
src: expose LookupAndCompile
with parameters
#45142
Closed
Closed
Conversation
This file contains 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
Review requested:
|
codebytere
added
the
embedding
Issues and PRs related to embedding Node.js in another project.
label
Oct 24, 2022
nodejs-github-bot
added
c++
Issues and PRs that require attention from people who are familiar with C++.
needs-ci
PRs that need a full CI run.
labels
Oct 24, 2022
codebytere
changed the title
src: expose LookupAndCompile with parameters
src: expose Oct 24, 2022
LookupAndCompile
with parameters
joyeecheung
approved these changes
Oct 24, 2022
juanarbol
approved these changes
Oct 24, 2022
addaleax
reviewed
Oct 25, 2022
codebytere
force-pushed
the
lookup-and-compile-wrapper
branch
from
October 26, 2022 20:04
d4d1c3a
to
5f9feee
Compare
legendecas
approved these changes
Oct 31, 2022
joyeecheung
approved these changes
Nov 1, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM
codebytere
force-pushed
the
lookup-and-compile-wrapper
branch
from
November 8, 2022 11:21
5f9feee
to
3b0d0e1
Compare
codebytere
force-pushed
the
lookup-and-compile-wrapper
branch
from
November 8, 2022 14:22
3b0d0e1
to
1fc633a
Compare
This was referenced Nov 11, 2022
jasnell
approved these changes
Nov 16, 2022
This needs rebase. |
Superseded by #53886 |
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
LookupAndCompile
that 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 toLookupAndCompile
in several places:shell/common/api/electron_api_asar.cc
shell/renderer/electron_sandboxed_renderer_client.cc
shell/renderer/renderer_client_base.cc
and 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
CompileAndCall
which is effectively the same as our ownCompileAndCall
wrapper, so if it would be better to modify that to allow parameters I would also be happy to take that path.