From 654f2b67e375e26c4a932f9fb0f1f2ce11888562 Mon Sep 17 00:00:00 2001 From: DABH Date: Wed, 22 Aug 2018 11:34:11 -0700 Subject: [PATCH] Use weak equality check so we can colorize null in safe mode --- lib/colors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/colors.js b/lib/colors.js index 7ca90fa..0edcddb 100644 --- a/lib/colors.js +++ b/lib/colors.js @@ -105,7 +105,7 @@ function applyStyle() { var args = Array.prototype.slice.call(arguments); var str = args.map(function(arg) { - if (arg !== undefined && arg.constructor === String) { + if (arg != undefined && arg.constructor === String) { return arg; } else { return util.inspect(arg);