Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL.canParse() should throw an error #18893

Closed
zloirock opened this issue Apr 28, 2023 · 1 comment · Fixed by #18896
Closed

URL.canParse() should throw an error #18893

zloirock opened this issue Apr 28, 2023 · 1 comment · Fixed by #18896
Labels
bug Something isn't working good first issue Good for newcomers web related to Web APIs

Comments

@zloirock
Copy link

Version

1.33.0

What is the expected behavior? Why is that the expected behavior?

URL.canParse() // => TypeError: at least 1 argument required, but 0 present.

What do you see instead?

URL.canParse() // => false

Additional information

See the signature https://url.spec.whatwg.org/#url-class

Similar to nodejs/node#47505

@bartlomieju bartlomieju added bug Something isn't working good first issue Good for newcomers web related to Web APIs labels Apr 28, 2023
@petamoriken
Copy link
Contributor

Sorry I missed it, I'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers web related to Web APIs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants