From d32287d2111ec7b845e09c7cfe6a5d779c5f3bd1 Mon Sep 17 00:00:00 2001 From: Ryan Clements Date: Fri, 16 Jun 2023 06:43:59 -0400 Subject: fix(ext/node): remove fromFileUrl from "node:path" (#19504) --- cli/tests/unit_node/testdata/child_process_unref.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/tests/unit_node/testdata/child_process_unref.js') 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]); -- cgit v1.2.3