Skip to content

Commit 47251a4

Browse files
addaleaxMayaLekova
authored andcommitted
lib: re-fix v8_prof_processor
Make the script not error out immediately because of a missing pseudo-global. (Note that it seems like tests are still broken on `master`.) PR-URL: nodejs#19059 Fixes: nodejs#19044 Refs: nodejs#18623 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent c2e76a7 commit 47251a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/v8_prof_processor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ if (process.platform === 'darwin') {
3434
tickArguments.push('--windows');
3535
}
3636
tickArguments.push.apply(tickArguments, process.argv.slice(1));
37-
script = `(function(require) {
37+
script = `(function(module, require) {
3838
arguments = ${JSON.stringify(tickArguments)};
3939
function write (s) { process.stdout.write(s) }
4040
${script}
4141
})`;
42-
vm.runInThisContext(script)(require);
42+
vm.runInThisContext(script)(module, require);

0 commit comments

Comments
 (0)