Skip to content

URL.canParse() should throw an error #47505

@zloirock

Description

@zloirock

Version

19.9.0

Platform

All

Subsystem

URL

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    whatwg-urlIssues and PRs related to the WHATWG URL implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions