Skip to content

Commit 0441f2a

Browse files
danbevjasnell
authored andcommitted
src: updating references to the old node.js file
The node.js script was renamed to bootstrap_node.js as part of 81b6882. 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: #8092 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 249bb8d commit 0441f2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/node.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3359,7 +3359,6 @@ void LoadEnvironment(Environment* env) {
33593359
env->isolate()->SetFatalErrorHandler(node::OnFatalError);
33603360
env->isolate()->AddMessageListener(OnMessage);
33613361

3362-
// The node.js file returns a function 'f'
33633362
atexit(AtExit);
33643363

33653364
TryCatch try_catch(env->isolate());
@@ -3379,16 +3378,17 @@ void LoadEnvironment(Environment* env) {
33793378
ReportException(env, try_catch);
33803379
exit(10);
33813380
}
3381+
// The bootstrap_node.js file returns a function 'f'
33823382
CHECK(f_value->IsFunction());
33833383
Local<Function> f = Local<Function>::Cast(f_value);
33843384

33853385
// Now we call 'f' with the 'process' variable that we've built up with
3386-
// all our bindings. Inside node.js we'll take care of assigning things to
3387-
// their places.
3386+
// all our bindings. Inside bootstrap_node.js we'll take care of
3387+
// assigning things to their places.
33883388

33893389
// We start the process this way in order to be more modular. Developers
3390-
// who do not like how 'src/node.js' setups the module system but do like
3391-
// Node's I/O bindings may want to replace 'f' with their own function.
3390+
// who do not like how bootstrap_node.js setups the module system but do
3391+
// like Node's I/O bindings may want to replace 'f' with their own function.
33923392

33933393
// Add a reference to the global object
33943394
Local<Object> global = env->context()->Global();

0 commit comments

Comments
 (0)