Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit e39a713

Browse files
author
Jan Krems
committed
fix: Properly format boolean properties
1 parent 7729442 commit e39a713

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/node-inspect.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ function formatPropertyValue(prop) {
235235
return stylizeWithColor(value, 'special');
236236
} else if (type === 'function') {
237237
return formatFunction({ className: 'Foo', description: 'bar' }, { colors: true });
238+
} else if (type === 'boolean') {
239+
return util.inspect(value === 'true', { colors: true });
238240
}
239241
return util.inspect(value, { colors: true });
240242
}

0 commit comments

Comments
 (0)