summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-02-21 20:45:57 -0600
committerGus Caplan <me@gus.host>2018-02-25 17:03:34 -0600
commit1708af369ba4cdfbc9f3eadd657508498b8489a3 (patch)
tree6fb3d04d3e4ef3d0e2c47c7560a6ba94363984d0 /lib
parentda886d9a4cd923bd5fc33eff7df22ff7d855a00b (diff)
downloadandroid-node-v8-1708af369ba4cdfbc9f3eadd657508498b8489a3.tar.gz
android-node-v8-1708af369ba4cdfbc9f3eadd657508498b8489a3.tar.bz2
android-node-v8-1708af369ba4cdfbc9f3eadd657508498b8489a3.zip
util: use blue on non-windows systems for number/bigint
PR-URL: https://github.com/nodejs/node/pull/18925 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/util.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js
index a019036ede..df117782ca 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -339,10 +339,11 @@ inspect.colors = Object.assign(Object.create(null), {
});
// Don't use 'blue' not visible on cmd.exe
+const windows = process.platform === 'win32';
inspect.styles = Object.assign(Object.create(null), {
'special': 'cyan',
- 'number': 'yellow',
- 'bigint': 'yellow',
+ 'number': windows ? 'yellow' : 'blue',
+ 'bigint': windows ? 'yellow' : 'blue',
'boolean': 'yellow',
'undefined': 'grey',
'null': 'bold',