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 danielleadams committed Jan 3, 2023
1 parent e5f9a52 commit 385d795
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 @@ -33,24 +33,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 @@ -110,10 +110,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 385d795

Please sign in to comment.