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>
This commit is contained in:
parent
23b9625c84
commit
ae9d146331
8
lib/internal/bootstrap_node.js
vendored
8
lib/internal/bootstrap_node.js
vendored
@ -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…
x
Reference in New Issue
Block a user