Skip to content

Commit

Permalink
lib: run prepareMainThreadExecution for third_party_main
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
addaleax authored and danbev committed Mar 19, 2019
1 parent ed2c696 commit 81edd0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/internal/main/run_third_party_main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
'use strict';

// Legacy _third_party_main.js support
const {
prepareMainThreadExecution
} = require('internal/bootstrap/pre_execution');

prepareMainThreadExecution();
markBootstrapComplete();

// Legacy _third_party_main.js support
process.nextTick(() => {
require('_third_party_main');
});

0 comments on commit 81edd0a

Please sign in to comment.