-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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: move and update comment about 'node.js' compilation. #7277
src: move and update comment about 'node.js' compilation. #7277
Conversation
Currently the comment regarding execution of src/node.js seems to refer to the file before the refactorings done in ec6af31. Also, it looks like the comment itself might have "drifted" a little in the file. Updated the comment to refer to the lib/internal/bootstrap_node.js file, moved it closer to the compilation step, and updated the name that is generated in node_natives.h.
@@ -3261,6 +3258,9 @@ void LoadEnvironment(Environment* env) { | |||
// are not safe to ignore. | |||
try_catch.SetVerbose(false); | |||
|
|||
// Compile, execute the lib/internal/bootstrap_node.js file. (Which was | |||
// included as static C string in node_natives.h. | |||
// 'internal_bootstrap_node_native is the string containing that source code.) | |||
Local<String> script_name = FIXED_ONE_BYTE_STRING(env->isolate(), "node.js"); |
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.
Perhaps this script name should be updated too since it has been named bootstrap_node.js
for some time now?
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.
+1 to updating this.
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.
I'll take a stab at changing this to bootstrap_node.js
.
@@ -3261,6 +3258,9 @@ void LoadEnvironment(Environment* env) { | |||
// are not safe to ignore. | |||
try_catch.SetVerbose(false); | |||
|
|||
// Execute the lib/internal/bootstrap_node.js file which was included as a | |||
// static in node_natives.h by node_js2c. 'internal_bootstrap_node_native' |
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.
static -> static C string
Don't forget about #7277 (comment) |
@@ -3261,7 +3261,8 @@ void LoadEnvironment(Environment* env) { | |||
// Execute the lib/internal/bootstrap_node.js file which was included as a | |||
// static in node_natives.h by node_js2c. 'internal_bootstrap_node_native' | |||
// is the string containing that source code. | |||
Local<String> script_name = FIXED_ONE_BYTE_STRING(env->isolate(), "node.js"); | |||
Local<String> script_name = FIXED_ONE_BYTE_STRING(env->isolate(), | |||
"bootstrap_node.js"); |
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.
Can you line up the opening "
with the e
in env
on the previous line.
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.
Absolutely, move it now.
@@ -3261,7 +3258,11 @@ void LoadEnvironment(Environment* env) { | |||
// are not safe to ignore. | |||
try_catch.SetVerbose(false); | |||
|
|||
Local<String> script_name = FIXED_ONE_BYTE_STRING(env->isolate(), "node.js"); | |||
// Execute the lib/internal/bootstrap_node.js file which was included as a | |||
// static in node_natives.h by node_js2c. 'internal_bootstrap_node_native' |
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.
static -> static C string
The CI had a Jenkins failure, and some Alpine failures which have since been corrected. LGTM |
LGTM |
This commit updates the node.js script name to reflect its actual name, which is now bootstrap_node.js. This commit also fixes the requisite message tests, and relocates a comment which seems to have drifted. PR-URL: #7277 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
Landed in 81b6882. Thanks! |
This commit updates the node.js script name to reflect its actual name, which is now bootstrap_node.js. This commit also fixes the requisite message tests, and relocates a comment which seems to have drifted. PR-URL: #7277 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
@cjihrig lts? |
No, I believe this is accurate in v4. |
Checklist
make -j4 test
(UNIX) orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
src
Description of change
Currently the comment regarding execution of src/node.js seems to refer
to the file before the refactorings done in ec6af31. Also, it looks like
the comment itself might have "drifted" a little in the file.
Updated the comment to refer to the lib/internal/bootstrap_node.js file,
moved it closer to the compilation step, and updated the name that is
generated in node_natives.h.