| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5fbccae commit 8b4a41e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,24 +34,24 @@ const { | |||
| 34 | 34 | isBuildingSnapshot, | |
| 35 | 35 | } = require('v8').startupSnapshot; | |
| 36 | 36 | ||
| 37 | - function prepareMainThreadExecution(expandArgv1 = false, initialzeModules = true) { | ||
| 37 | + function prepareMainThreadExecution(expandArgv1 = false, initializeModules = true) { | ||
| 38 | 38 | prepareExecution({ | |
| 39 | 39 | expandArgv1, | |
| 40 | - initialzeModules, | ||
| 40 | + initializeModules, | ||
| 41 | 41 | isMainThread: true | |
| 42 | 42 | }); | |
| 43 | 43 | } | |
| 44 | 44 | ||
| 45 | 45 | function prepareWorkerThreadExecution() { | |
| 46 | 46 | prepareExecution({ | |
| 47 | 47 | expandArgv1: false, | |
| 48 | - initialzeModules: false, // Will need to initialize it after policy setup | ||
| 48 | + initializeModules: false, // Will need to initialize it after policy setup | ||
| 49 | 49 | isMainThread: false | |
| 50 | 50 | }); | |
| 51 | 51 | } | |
| 52 | 52 | ||
| 53 | 53 | function prepareExecution(options) { | |
| 54 | - const { expandArgv1, initialzeModules, isMainThread } = options; | ||
| 54 | + const { expandArgv1, initializeModules, isMainThread } = options; | ||
| 55 | 55 | ||
| 56 | 56 | refreshRuntimeOptions(); | |
| 57 | 57 | reconnectZeroFillToggle(); | |
@@ -111,10 +111,10 @@ function prepareExecution(options) { | |||
| 111 | 111 | } else { | |
| 112 | 112 | assert(!internalBinding('worker').isMainThread); | |
| 113 | 113 | // The setup should be called in LOAD_SCRIPT message handler. | |
| 114 | - assert(!initialzeModules); | ||
| 114 | + assert(!initializeModules); | ||
| 115 | 115 | } | |
| 116 | 116 | ||
| 117 | - if (initialzeModules) { | ||
| 117 | + if (initializeModules) { | ||
| 118 | 118 | setupUserModules(); | |
| 119 | 119 | } | |
| 120 | 120 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments