Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
src: move and update comment about 'node.js' compilation.#7277
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
Uh oh!
There was an error while loading. Please reload this page.
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.
src/node.cc Outdated
| // 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"); |
mscdexJun 12, 2016 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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.
| 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
cjihrig commented Jun 14, 2016
Don't forget about #7277 (comment) |
src/node.cc Outdated
| // 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.
mscdex commented Jun 14, 2016
| 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
cjihrig commented Jun 15, 2016
The CI had a Jenkins failure, and some Alpine failures which have since been corrected. LGTM |
mscdex commented Jun 15, 2016
LGTM |
danbev commented Jun 16, 2016
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 commented Jun 17, 2016
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]>
MylesBorins commented Jul 11, 2016
@cjihrig lts? |
cjihrig commented Jul 12, 2016
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.