Skip to content

Commit a44f98e

Browse files
addaleaxtargos
authored andcommitted
lib: run prepareMainThreadExecution for third_party_main
Treat `_third_party_main` like any other CJS entry point, as it was done before 6967f91. PR-URL: #26677 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 9c83002 commit a44f98e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: lib/internal/main/run_third_party_main.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
'use strict';
22

3-
// Legacy _third_party_main.js support
3+
const {
4+
prepareMainThreadExecution
5+
} = require('internal/bootstrap/pre_execution');
46

7+
prepareMainThreadExecution();
58
markBootstrapComplete();
69

10+
// Legacy _third_party_main.js support
711
process.nextTick(() => {
812
require('_third_party_main');
913
});

0 commit comments

Comments
 (0)