diff options
author | ZYSzys <17367077526@163.com> | 2018-09-21 00:09:50 +0800 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-09-27 05:30:34 +0200 |
commit | 0f841208d2d89d91395536a3227c4b11e1bf2425 (patch) | |
tree | 9fd0751a7817e3a3799c89f7583adc3e0605d104 /lib/console.js | |
parent | f8d69911bef0ddd150d0f66f7a75b4655cf60b00 (diff) | |
download | node-new-0f841208d2d89d91395536a3227c4b11e1bf2425.tar.gz |
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>
Diffstat (limited to 'lib/console.js')
-rw-r--r-- | lib/console.js | 2 |
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'); |