diff --git a/lib/internal/main/run_third_party_main.js b/lib/internal/main/run_third_party_main.js index c26c1f25f380c8..5fb1d39bc6d072 100644 --- a/lib/internal/main/run_third_party_main.js +++ b/lib/internal/main/run_third_party_main.js @@ -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'); });