diff --git a/lib/internal/process/execution.js b/lib/internal/process/execution.js index 962bf0c8099210..8d1eeb20afcba8 100644 --- a/lib/internal/process/execution.js +++ b/lib/internal/process/execution.js @@ -151,9 +151,6 @@ function createOnGlobalUncaughtException() { // If someone handled it, then great. Otherwise, die in C++ land // since that means that we'll exit the process, emit the 'exit' event. const { inspect } = require('internal/util/inspect'); - const colors = internalBinding('util').guessHandleType(2) === 'TTY' && - require('internal/tty').hasColors() || - inspect.defaultOptions.colors; try { if (!process._exiting) { process._exiting = true; @@ -167,7 +164,7 @@ function createOnGlobalUncaughtException() { const { kExpandStackSymbol } = require('internal/util'); if (typeof er[kExpandStackSymbol] === 'function') er[kExpandStackSymbol](); - er.stack = inspect(er, { colors }); + er.stack = inspect(er); } catch { // Nothing to be done about it at this point. }