diff options
Diffstat (limited to 'tests/testdata/compile/workers/basic.ts')
-rw-r--r-- | tests/testdata/compile/workers/basic.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testdata/compile/workers/basic.ts b/tests/testdata/compile/workers/basic.ts new file mode 100644 index 000000000..8edf58de9 --- /dev/null +++ b/tests/testdata/compile/workers/basic.ts @@ -0,0 +1,11 @@ +import "./worker.ts"; + +console.log("Starting worker"); +const worker = new Worker( + new URL("./worker.ts", import.meta.url), + { type: "module" }, +); + +setTimeout(() => { + worker.postMessage(42); +}, 500); |