summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZYSzys <17367077526@163.com>2018-09-21 00:09:50 +0800
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-09-27 05:30:34 +0200
commit0f841208d2d89d91395536a3227c4b11e1bf2425 (patch)
tree9fd0751a7817e3a3799c89f7583adc3e0605d104
parentf8d69911bef0ddd150d0f66f7a75b4655cf60b00 (diff)
downloadandroid-node-v8-0f841208d2d89d91395536a3227c4b11e1bf2425.tar.gz
android-node-v8-0f841208d2d89d91395536a3227c4b11e1bf2425.tar.bz2
android-node-v8-0f841208d2d89d91395536a3227c4b11e1bf2425.zip
lib: change abstract equal to strict equal
PR-URL: https://github.com/nodejs/node/pull/22974 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
-rw-r--r--lib/console.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/console.js b/lib/console.js
index 30a9a0e733..406f7007e2 100644
--- a/lib/console.js
+++ b/lib/console.js
@@ -349,7 +349,7 @@ Console.prototype.table = function(tabularData, properties) {
if (properties !== undefined && !ArrayIsArray(properties))
throw new ERR_INVALID_ARG_TYPE('properties', 'Array', properties);
- if (tabularData == null || typeof tabularData !== 'object')
+ if (tabularData === null || typeof tabularData !== 'object')
return this.log(tabularData);
if (cliTable === undefined) cliTable = require('internal/cli_table');