Use weak equality check so we can colorize null in safe mode

This commit is contained in:
DABH 2018-08-22 11:34:11 -07:00
parent 2631877f88
commit 654f2b67e3

View File

@ -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);