summaryrefslogtreecommitdiff
path: root/tests/specs/future/runtime_api/worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/future/runtime_api/worker.js')
-rw-r--r--tests/specs/future/runtime_api/worker.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/specs/future/runtime_api/worker.js b/tests/specs/future/runtime_api/worker.js
new file mode 100644
index 000000000..64b8e07b8
--- /dev/null
+++ b/tests/specs/future/runtime_api/worker.js
@@ -0,0 +1,5 @@
+import { delay } from "../../../util/std/async/delay.ts";
+
+const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" });
+await delay(1_000);
+worker.terminate();