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 8b341e9 commit 3a69e1aCopy full SHA for 3a69e1a
lib/internal/process/pre_execution.js
@@ -568,7 +568,7 @@ function readPolicyFromDisk() {
568
// no bare specifiers for now
569
let manifestURL;
570
if (require('path').isAbsolute(experimentalPolicy)) {
571
- manifestURL = new URL(`file://${experimentalPolicy}`);
+ manifestURL = pathToFileURL(experimentalPolicy);
572
} else {
573
const cwdURL = pathToFileURL(process.cwd());
574
cwdURL.pathname += '/';
0 commit comments