diff options
author | Gus Caplan <me@gus.host> | 2018-02-21 20:45:57 -0600 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-02-25 17:03:34 -0600 |
commit | 1708af369ba4cdfbc9f3eadd657508498b8489a3 (patch) | |
tree | 6fb3d04d3e4ef3d0e2c47c7560a6ba94363984d0 /lib | |
parent | da886d9a4cd923bd5fc33eff7df22ff7d855a00b (diff) | |
download | android-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.js | 5 |
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', |