Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-11-29 | fix(workers): Make `worker.terminate()` not immediately kill the isolate ↵ | Andreu Botella | |
(#12831) Due to a bug in V8, terminating an isolate while a module with top-level await is being evaluated would crash the process. This change makes it so calling `worker.terminate()` will signal the worker to terminate at the next iteration of the event loop, and it schedules a proper termination of the worker's isolate after 2 seconds. |