Skip to content

Commit d0eef8d

Browse files
watildejoesepi
authored andcommitted
bootstrap: use file URL instead of relative url
PR-URL: nodejs#35622 Fixes: nodejs#35621 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 8ce9cb8 commit d0eef8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)