Skip to content

Commit

Permalink
bootstrap: use file URL instead of relative url
Browse files Browse the repository at this point in the history
PR-URL: nodejs#35622
Fixes: nodejs#35621
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
watilde authored and joesepi committed Oct 22, 2020
1 parent 8ce9cb8 commit d0eef8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/bootstrap/pre_execution.js
Original file line number Diff line number Diff line change
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 d0eef8d

Please sign in to comment.