Skip to content

Commit 5f62913

Browse files
committed
policy: fix actual bug
1 parent 0686faa commit 5f62913

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
@@ -589,7 +589,7 @@ function readPolicyFromDisk() {
589589
// no bare specifiers for now
590590
let manifestURL;
591591
if (require('path').isAbsolute(experimentalPolicy)) {
592-
manifestURL = new URL(`file://${experimentalPolicy}`);
592+
manifestURL = pathToFileURL(experimentalPolicy);
593593
} else {
594594
const cwdURL = pathToFileURL(process.cwd());
595595
cwdURL.pathname += '/';

0 commit comments

Comments
 (0)