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

Commit

Permalink
[debugger] rename function, add it to ignore list
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Sep 10, 2011
1 parent 5a36399 commit 79265fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ function Interface() {
var proto = Interface.prototype,
ignored = ['pause', 'resume', 'exitRepl', 'handleBreak',
'requireConnection', 'killChild', 'trySpawn',
'controlEval', 'debugEval', 'print'],
'controlEval', 'debugEval', 'print', 'childPrint'],
synonym = {
'run': 'r',
'cont': 'c',
Expand Down Expand Up @@ -715,7 +715,7 @@ Interface.prototype.print = function(text) {
process.stdout.write(text + '\n');
};

Interface.prototype.foreignPrint = function(text) {
Interface.prototype.childPrint = function(text) {
this.print(text.toString().split(/\r\n|\r|\n/g).filter(function(chunk) {
return chunk;
}).map(function(chunk) {
Expand Down Expand Up @@ -1103,8 +1103,8 @@ Interface.prototype.trySpawn = function(cb) {

this.child = spawn(process.execPath, args, { customFds: [0, 1, 2] });

this.child.stdout.on('data', this.foreignPrint.bind(this));
this.child.stderr.on('data', this.foreignPrint.bind(this));
this.child.stdout.on('data', this.childPrint.bind(this));
this.child.stderr.on('data', this.childPrint.bind(this));

this.pause();

Expand Down

0 comments on commit 79265fe

Please sign in to comment.