Permalink
Browse files

debugger: fix --debug-brk

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

Fixes #2710.
  • Loading branch information...
1 parent 0a34755 commit 09c296b44daedfd2b5da3a46120507ed7bd198e0 @bnoordhuis bnoordhuis committed Feb 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/module.js
View
@@ -429,7 +429,7 @@ Module.prototype._compile = function(content, filename) {
var compiledWrapper = runInThisContext(wrapper, filename, true);
if (global.v8debug) {
if (!resolvedArgv) {
- resolvedArgv = Module._resolveFilename(process.argv[1], null)[1];
+ resolvedArgv = Module._resolveFilename(process.argv[1], null);
}
// Set breakpoint on module start

1 comment on commit 09c296b

Owner
indutny commented on 09c296b Feb 8, 2012

Ohhhh, interesting...

Please sign in to comment.