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/async_error.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cli/tests/testdata/workers/async_error.ts (limited to 'cli/tests/testdata/workers/async_error.ts') diff --git a/cli/tests/testdata/workers/async_error.ts b/cli/tests/testdata/workers/async_error.ts new file mode 100644 index 000000000..154b957b1 --- /dev/null +++ b/cli/tests/testdata/workers/async_error.ts @@ -0,0 +1,4 @@ +// deno-lint-ignore require-await +(async () => { + throw new Error("bar"); +})(); -- cgit v1.2.3