| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d2f8222 commit bfd11d7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -449,6 +449,9 @@ void Worker::JoinThread() { | |||
| 449 | 449 | ||
| 450 | 450 | env()->remove_sub_worker_context(this); | |
| 451 | 451 | ||
| 452 | + // Join may happen after the worker exits and disposes the isolate | ||
| 453 | + if (!env()->can_call_into_js()) return; | ||
| 454 | + | ||
| 452 | 455 | { | |
| 453 | 456 | HandleScope handle_scope(env()->isolate()); | |
| 454 | 457 | Context::Scope context_scope(env()->context()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments