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