Skip to content

Commit 3a69e1a

Browse files
committed
policy: fix actual bug
1 parent 8b341e9 commit 3a69e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/process/pre_execution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ function readPolicyFromDisk() {
568568
// no bare specifiers for now
569569
let manifestURL;
570570
if (require('path').isAbsolute(experimentalPolicy)) {
571-
manifestURL = new URL(`file://${experimentalPolicy}`);
571+
manifestURL = pathToFileURL(experimentalPolicy);
572572
} else {
573573
const cwdURL = pathToFileURL(process.cwd());
574574
cwdURL.pathname += '/';

0 commit comments

Comments
 (0)