mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02: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:
committed by
Linus Groh
parent
bd74db157a
commit
247951e09c
Notes:
sideshowbarker
2024-07-17 09:36:40 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/247951e09c Pull-request: https://github.com/SerenityOS/serenity/pull/14515 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/linusg
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user