Skip to content

Commit b91224f

Browse files
committed
bootstrap: use file URL instead of relative url
1 parent c5b630a commit b91224f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap/pre_execution.js

Lines changed: 1 addition & 1 deletion
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)