Skip to content

URL.canParse() should throw an error #18893

Closed
@zloirock

Description

@zloirock

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlygood first issueGood for newcomerswebrelated to Web APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions