We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0686faa commit 5f62913Copy full SHA for 5f62913
lib/internal/process/pre_execution.js
@@ -589,7 +589,7 @@ function readPolicyFromDisk() {
589
// no bare specifiers for now
590
let manifestURL;
591
if (require('path').isAbsolute(experimentalPolicy)) {
592
- manifestURL = new URL(`file://${experimentalPolicy}`);
+ manifestURL = pathToFileURL(experimentalPolicy);
593
} else {
594
const cwdURL = pathToFileURL(process.cwd());
595
cwdURL.pathname += '/';
0 commit comments