debugger: export port

Fixes test-debugger-client.js

Fixes #1782.
This commit is contained in:
Fedor Indutny 2011-09-28 02:37:56 +07:00 committed by Ryan Dahl
parent 0f8f863043
commit 95866a6445

View File

@ -54,7 +54,7 @@ exports.start = function(argv, stdin, stdout) {
});
};
exports.port = 5858;
//
@ -1437,7 +1437,7 @@ Interface.prototype.killChild = function() {
Interface.prototype.trySpawn = function(cb) {
var self = this,
breakpoints = this.breakpoints || [],
port = 5858,
port = exports.port,
host = 'localhost';
this.killChild();