We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2e76a7 commit 47251a4Copy full SHA for 47251a4
lib/internal/v8_prof_processor.js
@@ -34,9 +34,9 @@ if (process.platform === 'darwin') {
34
tickArguments.push('--windows');
35
}
36
tickArguments.push.apply(tickArguments, process.argv.slice(1));
37
-script = `(function(require) {
+script = `(function(module, require) {
38
arguments = ${JSON.stringify(tickArguments)};
39
function write (s) { process.stdout.write(s) }
40
${script}
41
})`;
42
-vm.runInThisContext(script)(require);
+vm.runInThisContext(script)(module, require);
0 commit comments