summaryrefslogtreecommitdiff
path: root/tests/specs/worker/nonexistent_worker/nonexistent_worker.ts
diff options
context:
space:
mode:
authorMohammad Sulaiman <mohammad.sulaiman@exalt.ps>2024-09-09 18:07:41 +0300
committerGitHub <noreply@github.com>2024-09-09 11:07:41 -0400
commit582be0adc2b80e532cf92ffbc44c8c8268a51774 (patch)
tree48e5cdb63e524f974b17a3b787559ab0ff42e5c5 /tests/specs/worker/nonexistent_worker/nonexistent_worker.ts
parent5126ccb8428c4ccf199d3b30f1cd86ef11009ef7 (diff)
chore: Deprecate worker itests (#25514)
Diffstat (limited to 'tests/specs/worker/nonexistent_worker/nonexistent_worker.ts')
-rw-r--r--tests/specs/worker/nonexistent_worker/nonexistent_worker.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/specs/worker/nonexistent_worker/nonexistent_worker.ts b/tests/specs/worker/nonexistent_worker/nonexistent_worker.ts
new file mode 100644
index 000000000..b30d08636
--- /dev/null
+++ b/tests/specs/worker/nonexistent_worker/nonexistent_worker.ts
@@ -0,0 +1,5 @@
+const w = new Worker(import.meta.resolve("./doesnt_exist.js"), {
+ type: "module",
+});
+
+w.postMessage("hello");