Commit 7c0d2e7
authored
Fix pthread + modularize + running in node worker (#21832)
The issue here was the special case for the setting of `scriptDirectory` under
nodejs when `ENVIRONMENT_IS_WORKER`.
Previously this path was not being hit when the main thread was running in
a worker because we were not setting `ENVIRONMENT_IS_WORKER` in
this case. This was fixed in #21701 and `ENVIRONMENT_IS_WORKER`
was correctly set, but that meant that `scriptDirectory` then started being
set incorrectly.
Fixes: #218271 parent 9fdf8af commit 7c0d2e7
3 files changed
Lines changed: 41 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | | - | |
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10166 | 10166 | | |
10167 | 10167 | | |
10168 | 10168 | | |
10169 | | - | |
| 10169 | + | |
| 10170 | + | |
| 10171 | + | |
| 10172 | + | |
| 10173 | + | |
10170 | 10174 | | |
| 10175 | + | |
| 10176 | + | |
| 10177 | + | |
| 10178 | + | |
| 10179 | + | |
| 10180 | + | |
| 10181 | + | |
| 10182 | + | |
| 10183 | + | |
| 10184 | + | |
| 10185 | + | |
| 10186 | + | |
| 10187 | + | |
| 10188 | + | |
| 10189 | + | |
| 10190 | + | |
10171 | 10191 | | |
10172 | | - | |
10173 | | - | |
10174 | | - | |
10175 | | - | |
10176 | | - | |
10177 | | - | |
10178 | 10192 | | |
10179 | 10193 | | |
10180 | | - | |
| 10194 | + | |
10181 | 10195 | | |
10182 | 10196 | | |
10183 | | - | |
| 10197 | + | |
| 10198 | + | |
| 10199 | + | |
| 10200 | + | |
| 10201 | + | |
| 10202 | + | |
| 10203 | + | |
| 10204 | + | |
| 10205 | + | |
| 10206 | + | |
10184 | 10207 | | |
10185 | 10208 | | |
10186 | 10209 | | |
| |||
0 commit comments