Skip to content

Commit

Permalink
repl: fix coloring of process.versions
Browse files Browse the repository at this point in the history
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.

Fixes: nodejs#17086
  • Loading branch information
bnoordhuis committed Dec 25, 2017
1 parent 81c2b59 commit 2a46983
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,10 +1093,6 @@ function _exceptionWithHostPort(err,
return ex;
}

// process.versions needs a custom function as some values are lazy-evaluated.
process.versions[inspect.custom] =
() => exports.format(JSON.parse(JSON.stringify(process.versions)));

function callbackifyOnRejected(reason, cb) {
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
// Because `null` is a special error value in callbacks which means "no error
Expand Down

0 comments on commit 2a46983

Please sign in to comment.