LibWeb: Accept array pairs in URLSearchParams constructor

This commit is contained in:
Luke Wilde 2022-01-25 20:38:55 +00:00 committed by Andreas Kling
commit d7998c5dbd
Notes: sideshowbarker 2024-07-17 19:56:36 +09:00
3 changed files with 28 additions and 7 deletions

View file

@ -1,7 +1,7 @@
interface URLSearchParams {
// FIXME: the real type of init is (sequence<sequence<USVString>> or record<USVString, USVString> or USVString)
constructor(optional USVString init = "");
constructor(optional (sequence<sequence<USVString>> or USVString) init = "");
undefined append(USVString name, USVString value);
undefined delete(USVString name);