From b354eaa2475a16f66e99efc82bebf5bd620406e4 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 1 Oct 2021 10:30:55 +0100 Subject: fix(runtime/js/workers): throw errors instead of using an op (#12249) --- cli/tests/testdata/workers/worker_async_error.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cli/tests/testdata/workers/worker_async_error.ts (limited to 'cli/tests/testdata/workers/worker_async_error.ts') diff --git a/cli/tests/testdata/workers/worker_async_error.ts b/cli/tests/testdata/workers/worker_async_error.ts new file mode 100644 index 000000000..05d2ffcb6 --- /dev/null +++ b/cli/tests/testdata/workers/worker_async_error.ts @@ -0,0 +1,5 @@ +const worker = new Worker( + new URL("async_error.ts", import.meta.url).href, + { type: "module", name: "foo" }, +); +setTimeout(() => worker.terminate(), 30000); -- cgit v1.2.3