We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63ef88 commit aa012aaCopy full SHA for aa012aa
lib/colors.js
@@ -105,7 +105,8 @@ function applyStyle() {
105
var args = Array.prototype.slice.call(arguments);
106
107
var str = args.map(function(arg) {
108
- if (arg !== undefined && arg.constructor === String) {
+ // Use weak equality check so we can colorize null in safe mode
109
+ if (arg != undefined && arg.constructor === String) {
110
return arg;
111
} else {
112
return util.inspect(arg);
0 commit comments