mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibWeb: Add URLSearchParams as part of union type for XHR::send()
This patch adds support for URLSearchParams to XHR::send() and introduces the union type XMLHttpRequestBodyInit. XHR::send() now has support for String and URLSearchParams.
This commit is contained in:
parent
bd74db157a
commit
247951e09c
4 changed files with 40 additions and 5 deletions
|
@ -52,6 +52,8 @@ static bool is_wrappable_type(Type const& type)
|
|||
return true;
|
||||
if (type.name == "WebGLRenderingContext")
|
||||
return true;
|
||||
if (type.name == "URLSearchParams")
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue