summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/testdata/child_process_unref.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit_node/testdata/child_process_unref.js')
-rw-r--r--cli/tests/unit_node/testdata/child_process_unref.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tests/unit_node/testdata/child_process_unref.js b/cli/tests/unit_node/testdata/child_process_unref.js
index cc7815d97..8201ac44d 100644
--- a/cli/tests/unit_node/testdata/child_process_unref.js
+++ b/cli/tests/unit_node/testdata/child_process_unref.js
@@ -1,8 +1,9 @@
import cp from "node:child_process";
import * as path from "node:path";
+import { fileURLToPath } from "node:url";
const script = path.join(
- path.dirname(path.fromFileUrl(import.meta.url)),
+ path.dirname(fileURLToPath(import.meta.url)),
"infinite_loop.js",
);
const childProcess = cp.spawn(Deno.execPath(), ["run", script]);