Skip to content

Commit 2cc5053

Browse files
bnoordhuisMylesBorins
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 <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 4850c87 commit 2cc5053

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
@@ -1029,10 +1029,6 @@ function _exceptionWithHostPort(err,
10291029
return ex;
10301030
}
10311031

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

0 commit comments

Comments
 (0)