Skip to content

Commit a44f98e

Browse files
addaleaxtargos
authored andcommittedMar 27, 2019
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 <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 9c83002 commit a44f98e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 
+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)