summaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-03-09 14:44:04 +0100
committerAnna Henningsen <anna@addaleax.net>2018-03-17 17:55:03 +0100
commit1329844a0808705091891175a6bee58358380af6 (patch)
tree92b51e057d74ff0f7a20f5d95072a7c22bf0effd /lib/util.js
parent2e376184f27df759ecf84f2361c7921635aed00d (diff)
downloadandroid-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.js5
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',