Skip to content

Commit 8a12e99

Browse files
watildenodejs-github-bot
authored andcommitted
bootstrap: use file URL instead of relative url
PR-URL: #35622 Fixes: #35621 Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent 9f2e19f commit 8a12e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/internal/bootstrap/pre_execution.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ function initializePolicy() {
362362
// no bare specifiers for now
363363
let manifestURL;
364364
if (require('path').isAbsolute(experimentalPolicy)) {
365-
manifestURL = new URL(experimentalPolicy, 'file://');
365+
manifestURL = new URL(`file://${experimentalPolicy}`);
366366
} else {
367367
const cwdURL = pathToFileURL(process.cwd());
368368
cwdURL.pathname += '/';

0 commit comments

Comments
 (0)