Skip to content

Commit 6c7c4ae

Browse files
timjbisaacs
authored andcommitted
Don't overwrite an user-specified repl.writer
1 parent d00739c commit 6c7c4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function REPLServer(prompt, stream) {
105105
this.commands = {};
106106
defineDefaultCommands(this);
107107

108-
if (rli.enabled && !disableColors) {
108+
if (rli.enabled && !disableColors && exports.writer === util.inspect) {
109109
// Turn on ANSI coloring.
110110
exports.writer = function(obj, showHidden, depth) {
111111
return util.inspect(obj, showHidden, depth, true);

0 commit comments

Comments
 (0)