mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
src: updating references to the old node.js file
The node.js script was renamed to bootstrap_node.js as part of
81b6882e51. Several comments were
missed in src/node.cc that referred to the old file name.
This commit updates the comments to refer to bootstrap_node.js and
correct the path to this file where used.
It also moves a comment that seems to have drifted in the file.
PR-URL: https://github.com/nodejs/node/pull/8092
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
committed by
James M Snell
parent
249bb8da2f
commit
0441f2adb4
10
src/node.cc
10
src/node.cc
@@ -3359,7 +3359,6 @@ void LoadEnvironment(Environment* env) {
|
||||
env->isolate()->SetFatalErrorHandler(node::OnFatalError);
|
||||
env->isolate()->AddMessageListener(OnMessage);
|
||||
|
||||
// The node.js file returns a function 'f'
|
||||
atexit(AtExit);
|
||||
|
||||
TryCatch try_catch(env->isolate());
|
||||
@@ -3379,16 +3378,17 @@ void LoadEnvironment(Environment* env) {
|
||||
ReportException(env, try_catch);
|
||||
exit(10);
|
||||
}
|
||||
// The bootstrap_node.js file returns a function 'f'
|
||||
CHECK(f_value->IsFunction());
|
||||
Local<Function> f = Local<Function>::Cast(f_value);
|
||||
|
||||
// Now we call 'f' with the 'process' variable that we've built up with
|
||||
// all our bindings. Inside node.js we'll take care of assigning things to
|
||||
// their places.
|
||||
// all our bindings. Inside bootstrap_node.js we'll take care of
|
||||
// assigning things to their places.
|
||||
|
||||
// We start the process this way in order to be more modular. Developers
|
||||
// who do not like how 'src/node.js' setups the module system but do like
|
||||
// Node's I/O bindings may want to replace 'f' with their own function.
|
||||
// who do not like how bootstrap_node.js setups the module system but do
|
||||
// like Node's I/O bindings may want to replace 'f' with their own function.
|
||||
|
||||
// Add a reference to the global object
|
||||
Local<Object> global = env->context()->Global();
|
||||
|
||||
Reference in New Issue
Block a user