Don't overwrite an user-specified repl.writer

v0.7.4-release
Tim Baumann 2011-03-30 21:05:56 +02:00 committed by isaacs
parent d00739ce56
commit 6c7c4aeab6
1 changed files with 1 additions and 1 deletions

View File

@ -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);