Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Don't overwrite an user-specified repl.writer
Browse files Browse the repository at this point in the history
  • Loading branch information
timjb authored and isaacs committed Apr 21, 2011
1 parent d00739c commit 6c7c4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl.js
Expand Up @@ -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);
Expand Down

0 comments on commit 6c7c4ae

Please sign in to comment.