Skip to content

Commit 507aab5

Browse files
bnoordhuisjasnell
authored andcommitted
repl: fix coloring of process.versions
Remove the custom formatter that was added in commit 4fb27d4 ("intl: Add more versions from ICU"). It's not necessary anymore (and may not have been necessary at all) and prevents proper coloring in the REPL. PR-URL: #17861 Fixes: #17086 Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 214bbb5 commit 507aab5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/util.js

-4
Original file line numberDiff line numberDiff line change
@@ -1093,10 +1093,6 @@ function _exceptionWithHostPort(err,
10931093
return ex;
10941094
}
10951095

1096-
// process.versions needs a custom function as some values are lazy-evaluated.
1097-
process.versions[inspect.custom] =
1098-
() => exports.format(JSON.parse(JSON.stringify(process.versions)));
1099-
11001096
function callbackifyOnRejected(reason, cb) {
11011097
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
11021098
// Because `null` is a special error value in callbacks which means "no error

0 commit comments

Comments
 (0)