From f38eff29e78375e4a909e2cfe9cbe9d4ae26ff65 Mon Sep 17 00:00:00 2001 From: ZYSzys <17367077526@163.com> Date: Fri, 21 Sep 2018 00:09:50 +0800 Subject: [PATCH] lib: change abstract equal to strict equal PR-URL: https://github.com/nodejs/node/pull/22974 Reviewed-By: Anna Henningsen Reviewed-By: John-David Dalton Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- lib/console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/console.js b/lib/console.js index 7fef9e0a7297e8..d72bdf5b27c146 100644 --- a/lib/console.js +++ b/lib/console.js @@ -341,7 +341,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');