diff --git a/lib/module.js b/lib/module.js index bbb1556bb8..bf90c9692e 100644 --- a/lib/module.js +++ b/lib/module.js @@ -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