mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +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
Notes:
sideshowbarker
2024-07-17 09:36:40 +09:00
Author: https://github.com/kennethmyhra
Commit: 247951e09c
Pull-request: https://github.com/SerenityOS/serenity/pull/14515
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
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