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: #35622
Fixes: #35621
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
  • Loading branch information
watilde authored and nodejs-github-bot committed Oct 13, 2020
1 parent 9f2e19f commit 8a12e99
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 8a12e99

Please sign in to comment.