mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
lib: fix typo in pre_execution.js
`initialzeModules` -> `initializeModules` PR-URL: https://github.com/nodejs/node/pull/45039 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
1 parent
5fbccae4f0
commit
8b4a41e23d
1 file changed
+6
-6
@@ -34,10 +34,10 @@ const {
|
||||
isBuildingSnapshot,
|
||||
} = require('v8').startupSnapshot;
|
||||
|
||||
function prepareMainThreadExecution(expandArgv1 = false, initialzeModules = true) {
|
||||
function prepareMainThreadExecution(expandArgv1 = false, initializeModules = true) {
|
||||
prepareExecution({
|
||||
expandArgv1,
|
||||
initialzeModules,
|
||||
initializeModules,
|
||||
isMainThread: true
|
||||
});
|
||||
}
|
||||
@@ -45,13 +45,13 @@ function prepareMainThreadExecution(expandArgv1 = false, initialzeModules = true
|
||||
function prepareWorkerThreadExecution() {
|
||||
prepareExecution({
|
||||
expandArgv1: false,
|
||||
initialzeModules: false, // Will need to initialize it after policy setup
|
||||
initializeModules: false, // Will need to initialize it after policy setup
|
||||
isMainThread: false
|
||||
});
|
||||
}
|
||||
|
||||
function prepareExecution(options) {
|
||||
const { expandArgv1, initialzeModules, isMainThread } = options;
|
||||
const { expandArgv1, initializeModules, isMainThread } = options;
|
||||
|
||||
refreshRuntimeOptions();
|
||||
reconnectZeroFillToggle();
|
||||
@@ -111,10 +111,10 @@ function prepareExecution(options) {
|
||||
} else {
|
||||
assert(!internalBinding('worker').isMainThread);
|
||||
// The setup should be called in LOAD_SCRIPT message handler.
|
||||
assert(!initialzeModules);
|
||||
assert(!initializeModules);
|
||||
}
|
||||
|
||||
if (initialzeModules) {
|
||||
if (initializeModules) {
|
||||
setupUserModules();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user