Skip to content

Commit

Permalink
bootstrap: use file URL instead of relative url
Browse files Browse the repository at this point in the history
  • Loading branch information
watilde committed Oct 13, 2020
1 parent c5b630a commit b91224f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/bootstrap/pre_execution.js
Expand Up @@ -362,7 +362,7 @@ function initializePolicy() {
// no bare specifiers for now
let manifestURL;
if (require('path').isAbsolute(experimentalPolicy)) {
manifestURL = new URL(experimentalPolicy, 'file://');
manifestURL = new URL(`file://${experimentalPolicy}`);
} else {
const cwdURL = pathToFileURL(process.cwd());
cwdURL.pathname += '/';
Expand Down

0 comments on commit b91224f

Please sign in to comment.