-
Notifications
You must be signed in to change notification settings - Fork 16.2k
chore: ensure correct scopes are in place #22397
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
Conversation
@@ -138,10 +138,16 @@ int NodeMain(int argc, char* argv[]) { | |||
// Initialize gin::IsolateHolder. | |||
JavascriptEnvironment gin_env(loop); | |||
|
|||
v8::Isolate* isolate = gin_env.isolate(); |
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.
the isolate we were pulling out of the Node.js env is the same as the one in gin_env
(the one in gin_env
is used when creating the Node.js env), so this simply makes that clearer to the reader.
No Release Notes |
I was unable to backport this PR to "8-x-y" cleanly; |
I was unable to backport this PR to "9-x-y" cleanly; |
@codebytere has manually backported this PR to "9-x-y", please check out #22479 |
Description of Change
In ongoing efforts to match
ELECTRON_RUN_AS_NODE
as closely as possible to Node.js main instance execution, we should ensure that that scopes we have in place are correct.cc @MarshallOfSound @zcbenz @nornagon
Checklist
npm test
passesRelease Notes
Notes: none