Browse Source

debugger: fix --debug-brk

Commit 840229a forgot to update the debugger special case in lib/module.js

Fixes #2710.
v0.7.4-release
Ben Noordhuis 13 years ago
parent
commit
09c296b44d
  1. 2
      lib/module.js

2
lib/module.js

@ -429,7 +429,7 @@ Module.prototype._compile = function(content, filename) {
var compiledWrapper = runInThisContext(wrapper, filename, true); var compiledWrapper = runInThisContext(wrapper, filename, true);
if (global.v8debug) { if (global.v8debug) {
if (!resolvedArgv) { if (!resolvedArgv) {
resolvedArgv = Module._resolveFilename(process.argv[1], null)[1]; resolvedArgv = Module._resolveFilename(process.argv[1], null);
} }
// Set breakpoint on module start // Set breakpoint on module start

Loading…
Cancel
Save