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