Commit bfd11d7
worker: fix crash when a worker joins after exit
If a worker has not already joined before running to completion
it will join in a SetImmediateThreadsafe which could occur after
the worker has already ended by other means. Mutating a JS object
at that point would fail because the isolate is already disposed.
PR-URL: #56191
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>1 parent d2f8222 commit bfd11d7Copy full SHA for bfd11d7
File tree
Expand file treeCollapse file tree
1 file changed
+3
-0
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+3
-0
lines changedOpen diff view settings
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
449 | 449 | |
450 | 450 | |
451 | 451 | |
| 452 | + |
| 453 | + |
| 454 | + |
452 | 455 | |
453 | 456 | |
454 | 457 | |
|
0 commit comments