- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 23 Aug 2024 02:39:00 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 23 August 2024 09:39:04 UTC
This is documented although not in the sense you would expect. The second argument of `set()` is of type `USVString` as per https://url.spec.whatwg.org/#interface-urlsearchparams which per step 1 of https://webidl.spec.whatwg.org/#js-USVString means that through some indirection https://tc39.es/ecma262/multipage/abstract-operations.html#sec-tostring gets invoked on the value passed as second argument. Which is what you are observing. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/833#issuecomment-2306703019 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/url/issues/833/2306703019@github.com>
Received on Friday, 23 August 2024 09:39:04 UTC