Construct URLSearchParams from array or object

This commit is contained in:
CYBAI 2018-12-25 21:45:39 +08:00
parent 47a308b277
commit 4ba0ab7bd0
4 changed files with 26 additions and 58 deletions

View file

@ -6,7 +6,9 @@
* https://url.spec.whatwg.org/#interface-urlsearchparams
*/
[Constructor(optional (USVString or URLSearchParams) init/* = ""*/), Exposed=(Window,Worker)]
[Constructor(
optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init/* = ""*/
), Exposed=(Window,Worker)]
interface URLSearchParams {
void append(USVString name, USVString value);
void delete(USVString name);