Skip to content

Commit 952ff9c

Browse files
committed
src: fix function and variable names in comments
The `src/node.js` file is actually loaded and executed by `node::LoadEnvironment` function. The variable which has the contents is, `native_node`.
1 parent 02448c6 commit 952ff9c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2955,7 +2955,7 @@ void LoadEnvironment(Environment* env) {
29552955
env->isolate()->AddMessageListener(OnMessage);
29562956

29572957
// Compile, execute the src/node.js file. (Which was included as static C
2958-
// string in node_natives.h. 'natve_node' is the string containing that
2958+
// string in node_natives.h. 'native_node' is the string containing that
29592959
// source code.)
29602960

29612961
// The node.js file returns a function 'f'

src/node.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// Hello, and welcome to hacking node.js!
22
//
3-
// This file is invoked by node::Load in src/node.cc, and responsible for
4-
// bootstrapping the node.js core. Special caution is given to the performance
5-
// of the startup process, so many dependencies are invoked lazily.
3+
// This file is invoked by node::LoadEnvironment in src/node.cc, and
4+
// responsible for bootstrapping the node.js core. Special caution is given to
5+
// the performance of the startup process, so many dependencies are invoked
6+
// lazily.
67

78
'use strict';
89

0 commit comments

Comments
 (0)