From 5151afa123a9635d2f4de9555f8843460b284a11 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 17 May 2021 09:44:38 +0200 Subject: fix: static import permissions in dynamic imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/tests/workers/parent_read_check_granular_worker.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cli/tests/workers/parent_read_check_granular_worker.js') diff --git a/cli/tests/workers/parent_read_check_granular_worker.js b/cli/tests/workers/parent_read_check_granular_worker.js index 474b8a61b..1391190cd 100644 --- a/cli/tests/workers/parent_read_check_granular_worker.js +++ b/cli/tests/workers/parent_read_check_granular_worker.js @@ -1,5 +1,3 @@ -import { fromFileUrl } from "../../../test_util/std/path/mod.ts"; - const worker = new Worker( new URL("./read_check_granular_worker.js", import.meta.url).href, { @@ -31,7 +29,7 @@ worker.onmessage = ({ data: childResponse }) => { onmessage = async ({ data }) => { const { state } = await Deno.permissions.query({ name: "read", - path: fromFileUrl(new URL(data.route, import.meta.url)), + path: data.path, }); messages[data.index] = state === "granted"; -- cgit v1.2.3