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

Commit

Permalink
Browse files Browse the repository at this point in the history
debugger: fix --debug-brk
Commit 840229a forgot to update the debugger special case in lib/module.js

Fixes #2710.
  • Loading branch information
bnoordhuis committed Feb 7, 2012
1 parent 0a34755 commit 09c296b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Expand Up @@ -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
Expand Down

1 comment on commit 09c296b

@indutny
Copy link
Member

@indutny indutny commented on 09c296b Feb 8, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohhhh, interesting...

Please sign in to comment.