diff options
| author | Andreu Botella <abb@randomunok.com> | 2021-09-30 19:52:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-30 19:52:58 +0200 |
| commit | a2632c86b1ddceae588886c7623a86f46e6098d5 (patch) | |
| tree | 71bfff4f95a437577cbae57a53279d98a954624a /cli/tests/testdata/worker_close_in_wasm_reactions.js | |
| parent | 68e5cdaff0620b497e265d6e50bae6e994e86144 (diff) | |
fix: Don't panic when a worker is closed in the reactions to a wasm operation. (#12270)
Diffstat (limited to 'cli/tests/testdata/worker_close_in_wasm_reactions.js')
| -rw-r--r-- | cli/tests/testdata/worker_close_in_wasm_reactions.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/testdata/worker_close_in_wasm_reactions.js b/cli/tests/testdata/worker_close_in_wasm_reactions.js new file mode 100644 index 000000000..2f5ea32d5 --- /dev/null +++ b/cli/tests/testdata/worker_close_in_wasm_reactions.js @@ -0,0 +1,10 @@ +// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. + +// https://github.com/denoland/deno/issues/12263 +// Test for a panic that happens when a worker is closed in the reactions of a +// WASM async operation. + +new Worker( + new URL("./workers/close_in_wasm_reactions.js", import.meta.url), + { type: "module" }, +); |
