From 952ff9cfa5b38c72aa4faec77e442a6f909fff78 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Thu, 24 Sep 2015 08:31:13 +0530 Subject: [PATCH 1/2] 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`. --- src/node.cc | 2 +- src/node.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/node.cc b/src/node.cc index 1e63009e3bba1e..9c009fc3be3812 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2955,7 +2955,7 @@ void LoadEnvironment(Environment* env) { env->isolate()->AddMessageListener(OnMessage); // Compile, execute the src/node.js file. (Which was included as static C - // string in node_natives.h. 'natve_node' is the string containing that + // string in node_natives.h. 'native_node' is the string containing that // source code.) // The node.js file returns a function 'f' diff --git a/src/node.js b/src/node.js index 001a47657f816a..b4a8aee0cd2384 100644 --- a/src/node.js +++ b/src/node.js @@ -1,8 +1,9 @@ // Hello, and welcome to hacking node.js! // -// This file is invoked by node::Load in src/node.cc, and responsible for -// bootstrapping the node.js core. Special caution is given to the performance -// of the startup process, so many dependencies are invoked lazily. +// This file is invoked by node::LoadEnvironment in src/node.cc, and +// responsible for bootstrapping the node.js core. Special caution is given to +// the performance of the startup process, so many dependencies are invoked +// lazily. 'use strict'; From 132a6877f744eac83770263b1c4731431499b8c1 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Thu, 24 Sep 2015 16:07:45 +0530 Subject: [PATCH 2/2] Improve text --- src/node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node.js b/src/node.js index b4a8aee0cd2384..a2b21fb4342b3e 100644 --- a/src/node.js +++ b/src/node.js @@ -1,8 +1,8 @@ // Hello, and welcome to hacking node.js! // -// This file is invoked by node::LoadEnvironment in src/node.cc, and -// responsible for bootstrapping the node.js core. Special caution is given to -// the performance of the startup process, so many dependencies are invoked +// This file is invoked by node::LoadEnvironment in src/node.cc, and is +// responsible for bootstrapping the node.js core. As special caution is given +// to the performance of the startup process, many dependencies are invoked // lazily. 'use strict';