From 6c7c4aeab6918425e27f1280842e39151cf270ae Mon Sep 17 00:00:00 2001 From: Tim Baumann Date: Wed, 30 Mar 2011 21:05:56 +0200 Subject: [PATCH] Don't overwrite an user-specified repl.writer --- lib/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repl.js b/lib/repl.js index 434ff66baeb..33794776727 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -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);