summaryrefslogtreecommitdiff
path: root/cli/tests/workers/nonexistent_worker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/workers/nonexistent_worker.ts')
-rw-r--r--cli/tests/workers/nonexistent_worker.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/workers/nonexistent_worker.ts b/cli/tests/workers/nonexistent_worker.ts
new file mode 100644
index 000000000..8ebe29114
--- /dev/null
+++ b/cli/tests/workers/nonexistent_worker.ts
@@ -0,0 +1,5 @@
+const w = new Worker(new URL("doesnt_exist.js", import.meta.url).href, {
+ type: "module",
+});
+
+w.postMessage("hello");