GeezerVison is showing github.com — lib: fix typo in `pre_execution.js` · nodejs/node@385d795
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js +6-6Lines changed: 6 additions & 6 deletions | 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 | } |
|