We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bafe69 commit 698457eCopy full SHA for 698457e
1 file changed
lib/internal/url.js
@@ -1394,8 +1394,7 @@ function pathToFileURL(filepath) {
1394
}
1395
1396
function isURLInstance(fileURLOrPath) {
1397
- return fileURLOrPath != null && fileURLOrPath[searchParams] &&
1398
- fileURLOrPath[searchParams][searchParams];
+ return fileURLOrPath != null && fileURLOrPath.href && fileURLOrPath.origin;
1399
1400
1401
function toPathIfFileURL(fileURLOrPath) {
0 commit comments