Skip to content

Commit

Permalink
lib: fix typo in pre_execution.js
Browse files Browse the repository at this point in the history
`initialzeModules` -> `initializeModules`

PR-URL: #45039
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
aduh95 authored and RafaelGSS committed Nov 10, 2022
1 parent 5fbccae commit 8b4a41e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/internal/process/pre_execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,24 @@ const {
isBuildingSnapshot,
} = require('v8').startupSnapshot;

function prepareMainThreadExecution(expandArgv1 = false, initialzeModules = true) {
function prepareMainThreadExecution(expandArgv1 = false, initializeModules = true) {
prepareExecution({
expandArgv1,
initialzeModules,
initializeModules,
isMainThread: 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();
Expand Down Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 8b4a41e

Please sign in to comment.