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

Commit f8f51d7

Browse files
author
Jan Krems
committed
fix: Properly format numeric properties
1 parent e39a713 commit f8f51d7

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
@@ -237,6 +237,8 @@ function formatPropertyValue(prop) {
237237
return formatFunction({ className: 'Foo', description: 'bar' }, { colors: true });
238238
} else if (type === 'boolean') {
239239
return util.inspect(value === 'true', { colors: true });
240+
} else if (type === 'number') {
241+
return util.inspect(+value, { colors: true });
240242
}
241243
return util.inspect(value, { colors: true });
242244
}

0 commit comments

Comments
 (0)