Skip to content

Commit

Permalink
Update url.js
Browse files Browse the repository at this point in the history
Noticed a potential variable name issue.
  • Loading branch information
firtina-lyfta authored Jul 8, 2022
1 parent e93b7a6 commit 73d8acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyfills/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ function parse(self, url, parseQueryString, slashesDenoteHost) {
function urlFileURLToPath(path) {
if (typeof path === 'string')
path = new Url().parse(path);
else if (!(url instanceof Url))
else if (!(path instanceof Url))
throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type ' + (typeof path) + String(path));
if (path.protocol !== 'file:')
throw new TypeError('The URL must be of scheme file');
Expand Down

0 comments on commit 73d8acc

Please sign in to comment.