Repository navigation
Commit a340e10
committed
fix(worker): report a worker's __runOnMainThread exception without its isolate handle
The exception a worker's callback threw kept a handle into the worker isolate after RunMainThreadEntry let go of it, so the isolate could be disposed before the event loop reported it, and the report resolved the handle against the main thread's isolate. For a worker's callback the exception now drops the handle while the isolate is still held, and only its message and stack reach Java.1 parent 168ff7c commit a340e10
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
775 | 782 | | |
776 | | - | |
| 783 | + | |
777 | 784 | | |
778 | 785 | | |
779 | 786 | | |
| |||
0 commit comments