Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

don't use global vars

  • Loading branch information...
indutny authored and ry committed Sep 22, 2011
1 parent 2010071 commit 78d91ff07475e75a4fd2ded66ea10b9f2267b60b
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/_debugger.js
@@ -57,9 +57,6 @@ exports.start = function(argv, stdin, stdout) {
};


var args = process.argv.slice(2);
args.unshift('--debug-brk');



//
@@ -708,12 +705,13 @@ function SourceInfo(body) {

// This class is the repl-enabled debugger interface which is invoked on
// "node debug"
function Interface(stdin, stdout) {
function Interface(stdin, stdout, args) {
var self = this,
child;

this.stdin = stdin;
this.stdout = stdout;
this.args = args;

var streams = {
stdin: stdin,
@@ -1413,7 +1411,7 @@ Interface.prototype.trySpawn = function(cb) {

this.killChild();

this.child = spawn(process.execPath, args);
this.child = spawn(process.execPath, this.args);

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

0 comments on commit 78d91ff

Please sign in to comment.
You can’t perform that action at this time.