From 2a469836d406b3b968802653a9cc058add2d4519 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 25 Dec 2017 08:48:33 +0100 Subject: [PATCH] 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. Fixes: https://github.com/nodejs/node/issues/17086 --- lib/util.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/util.js b/lib/util.js index 0d75e43f08d066..f9c33a759fa45b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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