process: call prepareMainThreadExecution in all main thread scripts · nodejs/node@b0afac2 · GitHub
Skip to content

Commit b0afac2

Browse files
joyeecheungtargos
authored andcommitted
process: call prepareMainThreadExecution in all main thread scripts
PR-URL: #26468 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent b75af15 commit b0afac2

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

lib/internal/main/print_bash_completion.js

Lines changed: 6 additions & 0 deletions

lib/internal/main/print_help.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
const { types } = internalBinding('options');
44
const hasCrypto = Boolean(process.versions.openssl);
55

6+
const {
7+
prepareMainThreadExecution
8+
} = require('internal/bootstrap/pre_execution');
9+
610
const typeLookup = [];
711
for (const key of Object.keys(types))
812
typeLookup[types[key]] = key;
@@ -171,6 +175,8 @@ function print(stream) {
171175
stream.write('\nDocumentation can be found at https://nodejs.org/\n');
172176
}
173177

178+
prepareMainThreadExecution();
179+
174180
markBootstrapComplete();
175181

176182
print(process.stdout);

lib/internal/main/prof_process.js

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)