Skip to content

Commit e584113

Browse files
committed
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: #19059 Fixes: #19044 Refs: #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 96f0bec commit e584113

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
@@ -33,9 +33,9 @@ if (process.platform === 'darwin') {
3333
tickArguments.push('--windows');
3434
}
3535
tickArguments.push.apply(tickArguments, process.argv.slice(1));
36-
script = `(function(require) {
36+
script = `(function(module, require) {
3737
arguments = ${JSON.stringify(tickArguments)};
3838
function write (s) { process.stdout.write(s) }
3939
${script}
4040
})`;
41-
vm.runInThisContext(script)(require);
41+
vm.runInThisContext(script)(module, require);

0 commit comments

Comments
 (0)