diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-03-09 14:44:04 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-03-17 17:55:03 +0100 |
commit | 1329844a0808705091891175a6bee58358380af6 (patch) | |
tree | 92b51e057d74ff0f7a20f5d95072a7c22bf0effd /lib/util.js | |
parent | 2e376184f27df759ecf84f2361c7921635aed00d (diff) | |
download | android-node-v8-1329844a0808705091891175a6bee58358380af6.tar.gz android-node-v8-1329844a0808705091891175a6bee58358380af6.tar.bz2 android-node-v8-1329844a0808705091891175a6bee58358380af6.zip |
Revert "util: use blue on non-windows systems for number/bigint"
This reverts commit 1708af369ba4cdfbc9f3eadd657508498b8489a3.
Numbers are much more difficult to read in blue and it would be good
to have a consistent output throughout all OS.
PR-URL: https://github.com/nodejs/node/pull/19256
Refs: https://github.com/nodejs/node/pull/18925
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/util.js b/lib/util.js index b9ad76f4ad..eabdf6c1df 100644 --- a/lib/util.js +++ b/lib/util.js @@ -347,11 +347,10 @@ 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': windows ? 'yellow' : 'blue', - 'bigint': windows ? 'yellow' : 'blue', + 'number': 'yellow', + 'bigint': 'yellow', 'boolean': 'yellow', 'undefined': 'grey', 'null': 'bold', |