Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fde0c6f

Browse filesBrowse files
thefourtheyervagg
authored andcommitted
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`. PR-URL: #3039 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 4c8d96b commit fde0c6f
Copy full SHA for fde0c6f

File tree

Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Open diff view settings
Collapse file

‎src/node.cc‎

Copy file name to clipboardExpand all lines: src/node.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2967,7 +2967,7 @@ void LoadEnvironment(Environment* env) {
29672967
env->isolate()->AddMessageListener(OnMessage);
29682968

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

29732973
// The node.js file returns a function 'f'
Collapse file

‎src/node.js‎

Copy file name to clipboardExpand all lines: src/node.js
+4-3Lines 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 is
4+
// responsible for bootstrapping the node.js core. As special caution is given
5+
// to the performance of the startup process, many dependencies are invoked
6+
// lazily.
67

78
'use strict';
89

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.