mirror of https://github.com/nodejs/node.git
Don't overwrite an user-specified repl.writer
parent
d00739ce56
commit
6c7c4aeab6
|
@ -105,7 +105,7 @@ function REPLServer(prompt, stream) {
|
|||
this.commands = {};
|
||||
defineDefaultCommands(this);
|
||||
|
||||
if (rli.enabled && !disableColors) {
|
||||
if (rli.enabled && !disableColors && exports.writer === util.inspect) {
|
||||
// Turn on ANSI coloring.
|
||||
exports.writer = function(obj, showHidden, depth) {
|
||||
return util.inspect(obj, showHidden, depth, true);
|
||||
|
|
Loading…
Reference in New Issue