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