Re: [whatwg/url] Report all hostname state failures for URLPattern (PR #863)

sisidovski left a comment (whatwg/url#863)

I assume @anonrig is talking about "failure" itself. In the spec returning "failure" in many places and the caller handles failures appropriately e.g.

> If parseResult is failure, then throw a [TypeError](https://webidl.spec.whatwg.org/#exceptiondef-typeerror).

As the basic url parser is an internally called algorithm, it's totally fine to just return "failure" in failure cases as far as I understand it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/863#issuecomment-2726282154
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/863/c2726282154@github.com>

Received on Saturday, 15 March 2025 06:32:11 UTC