Commit 81e363a
worker: add argv constructor option
A convenience option to populate `process.argv` in worker threads.
PR-URL: #30559
Fixes: #30531
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>1 parent 2cc0482 commit 81e363aCopy full SHA for 81e363a
File tree
Expand file treeCollapse file tree
4 files changed
+81
-3
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- main
- test/parallel
Expand file treeCollapse file tree
4 files changed
+81
-3
lines changedOpen diff view settings
Collapse file
+7Lines changed: 7 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
510 | 510 | |
511 | 511 | |
512 | 512 | |
| 513 | + |
| 514 | + |
| 515 | + |
513 | 516 | |
514 | 517 | |
515 | 518 | |
| ||
518 | 521 | |
519 | 522 | |
520 | 523 | |
| 524 | + |
| 525 | + |
| 526 | + |
| 527 | + |
521 | 528 | |
522 | 529 | |
523 | 530 | |
|
Collapse file
lib/internal/main/worker_thread.js
Copy file name to clipboardExpand all lines: lib/internal/main/worker_thread.js+16-2Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
92 | 92 | |
93 | 93 | |
94 | 94 | |
| 95 | + |
95 | 96 | |
96 | 97 | |
97 | 98 | |
| ||
115 | 116 | |
116 | 117 | |
117 | 118 | |
| 119 | + |
| 120 | + |
| 121 | + |
118 | 122 | |
119 | 123 | |
120 | 124 | |
| ||
138 | 142 | |
139 | 143 | |
140 | 144 | |
141 | | - |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
142 | 155 | |
143 | 156 | |
144 | 157 | |
145 | 158 | |
146 | | - |
| 159 | + |
| 160 | + |
147 | 161 | |
148 | 162 | |
149 | 163 | |
|
Collapse file
+9-1Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
86 | 86 | |
87 | 87 | |
88 | 88 | |
89 | | - |
| 89 | + |
90 | 90 | |
91 | 91 | |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
92 | 99 | |
93 | 100 | |
94 | 101 | |
| ||
158 | 165 | |
159 | 166 | |
160 | 167 | |
| 168 | + |
161 | 169 | |
162 | 170 | |
163 | 171 | |
|
Collapse file
test/parallel/test-worker-process-argv.js
Copy file name to clipboard+49Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
0 commit comments