summaryrefslogtreecommitdiff
path: root/cli/tests/error_worker_dynamic.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-09-26 00:46:58 +1000
committerRyan Dahl <ry@tinyclouds.org>2019-09-25 10:46:58 -0400
commit3d2d0ee771abe308aee9a0ab6c89fd09bac80330 (patch)
tree5cc74b1e38b824d083306c5264a484d64ee6d248 /cli/tests/error_worker_dynamic.ts
parent112ce0df1f9e36a57b520aa59dc1767ba0716bb0 (diff)
Handle uncaught worker errors without panicking (#3019)
Diffstat (limited to 'cli/tests/error_worker_dynamic.ts')
-rw-r--r--cli/tests/error_worker_dynamic.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/error_worker_dynamic.ts b/cli/tests/error_worker_dynamic.ts
new file mode 100644
index 000000000..16fadf573
--- /dev/null
+++ b/cli/tests/error_worker_dynamic.ts
@@ -0,0 +1,3 @@
+const b = new Blob(['throw new Error("hello");']);
+const blobURL = URL.createObjectURL(b);
+new Worker(blobURL);