summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/unstable_worker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/run/unstable_worker.ts')
-rw-r--r--cli/tests/testdata/run/unstable_worker.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/unstable_worker.ts b/cli/tests/testdata/run/unstable_worker.ts
new file mode 100644
index 000000000..d111d2c7e
--- /dev/null
+++ b/cli/tests/testdata/run/unstable_worker.ts
@@ -0,0 +1,6 @@
+const w = new Worker(
+ import.meta.resolve("../workers/worker_unstable.ts"),
+ { type: "module", name: "Unstable Worker" },
+);
+
+w.postMessage({});