File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,24 +33,24 @@ const {
33
33
isBuildingSnapshot,
34
34
} = require ( 'v8' ) . startupSnapshot ;
35
35
36
- function prepareMainThreadExecution ( expandArgv1 = false , initialzeModules = true ) {
36
+ function prepareMainThreadExecution ( expandArgv1 = false , initializeModules = true ) {
37
37
prepareExecution ( {
38
38
expandArgv1,
39
- initialzeModules ,
39
+ initializeModules ,
40
40
isMainThread : true
41
41
} ) ;
42
42
}
43
43
44
44
function prepareWorkerThreadExecution ( ) {
45
45
prepareExecution ( {
46
46
expandArgv1 : false ,
47
- initialzeModules : false , // Will need to initialize it after policy setup
47
+ initializeModules : false , // Will need to initialize it after policy setup
48
48
isMainThread : false
49
49
} ) ;
50
50
}
51
51
52
52
function prepareExecution ( options ) {
53
- const { expandArgv1, initialzeModules , isMainThread } = options ;
53
+ const { expandArgv1, initializeModules , isMainThread } = options ;
54
54
55
55
refreshRuntimeOptions ( ) ;
56
56
reconnectZeroFillToggle ( ) ;
@@ -110,10 +110,10 @@ function prepareExecution(options) {
110
110
} else {
111
111
assert ( ! internalBinding ( 'worker' ) . isMainThread ) ;
112
112
// The setup should be called in LOAD_SCRIPT message handler.
113
- assert ( ! initialzeModules ) ;
113
+ assert ( ! initializeModules ) ;
114
114
}
115
115
116
- if ( initialzeModules ) {
116
+ if ( initializeModules ) {
117
117
setupUserModules ( ) ;
118
118
}
119
119
}
You can’t perform that action at this time.
0 commit comments