Browse Source

lib: minor improvements to bootstrap_node.js

Change '==' to '==='

PR-URL: https://github.com/nodejs/node/pull/8906
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
v6
Rémy MEJA 8 years ago
committed by James M Snell
parent
commit
ae9d146331
  1. 8
      lib/internal/bootstrap_node.js

8
lib/internal/bootstrap_node.js

@ -70,15 +70,15 @@
NativeModule.require('_third_party_main');
});
} else if (process.argv[1] == 'debug') {
} else if (process.argv[1] === 'debug') {
// Start the debugger agent
NativeModule.require('_debugger').start();
} else if (process.argv[1] == '--remote_debugging_server') {
} else if (process.argv[1] === '--remote_debugging_server') {
// Start the debugging server
NativeModule.require('internal/inspector/remote_debugging_server');
} else if (process.argv[1] == '--debug-agent') {
} else if (process.argv[1] === '--debug-agent') {
// Start the debugger agent
NativeModule.require('_debug_agent').start();
@ -405,7 +405,7 @@
NativeModule._cache = {};
NativeModule.require = function(id) {
if (id == 'native_module') {
if (id === 'native_module') {
return NativeModule;
}

Loading…
Cancel
Save