1
Fork 0
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:
Kenneth Myhra 2022-07-07 23:15:41 +02:00 committed by Linus Groh
parent bd74db157a
commit 247951e09c
4 changed files with 40 additions and 5 deletions

View file

@ -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;
}