summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/workers/terminate_tla_crash.js.out
diff options
context:
space:
mode:
authorAndreu Botella <abb@randomunok.com>2021-11-29 13:37:44 +0100
committerGitHub <noreply@github.com>2021-11-29 13:37:44 +0100
commit4a13c320d73b1d8a0da18effa81199ab2ea8ef55 (patch)
treef593188a01d1132a898e73b8958f7f5cb9cd8c7f /cli/tests/testdata/workers/terminate_tla_crash.js.out
parent5178e093ed366b59964bc435b0d1bd127a83df8c (diff)
fix(workers): Make `worker.terminate()` not immediately kill the isolate (#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.
Diffstat (limited to 'cli/tests/testdata/workers/terminate_tla_crash.js.out')
-rw-r--r--cli/tests/testdata/workers/terminate_tla_crash.js.out0
1 files changed, 0 insertions, 0 deletions
diff --git a/cli/tests/testdata/workers/terminate_tla_crash.js.out b/cli/tests/testdata/workers/terminate_tla_crash.js.out
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cli/tests/testdata/workers/terminate_tla_crash.js.out