From 4cad3da832cd6e745d1b6026299e82dfb5447a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20MEJA?= Date: Mon, 3 Oct 2016 13:11:40 +0200 Subject: [PATCH] lib: minor improvements to bootstrap_node.js Change '==' to '===' PR-URL: https://github.com/nodejs/node/pull/8906 Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Michael Dawson Reviewed-By: Luigi Pinca Reviewed-By: Brian White --- lib/internal/bootstrap_node.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index c9e937e2922062..8b8d066ab039e9 100644 --- a/lib/internal/bootstrap_node.js +++ b/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; }