summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/workers/worker_async_error.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/workers/worker_async_error.ts')
-rw-r--r--cli/tests/testdata/workers/worker_async_error.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/testdata/workers/worker_async_error.ts b/cli/tests/testdata/workers/worker_async_error.ts
index 05d2ffcb6..7941a5bbe 100644
--- a/cli/tests/testdata/workers/worker_async_error.ts
+++ b/cli/tests/testdata/workers/worker_async_error.ts
@@ -1,5 +1,5 @@
const worker = new Worker(
- new URL("async_error.ts", import.meta.url).href,
+ import.meta.resolve("./async_error.ts"),
{ type: "module", name: "foo" },
);
setTimeout(() => worker.terminate(), 30000);