Re: [whatwg/url] `URLSearchParams.set()` accepts an array as value in Firefox & Chrome but this is nowhere documented (Issue #833)

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