mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
LibWeb: Allow ArrayBuffer attributes to be used in IDL
The FileReader IDL has the following entry: ``` readonly attribute (DOMString or ArrayBuffer)? result; ``` This change supports the use ArrayBuffer as a JS built-in in this definition.
This commit is contained in:
parent
132b17406b
commit
e123492470
Notes:
sideshowbarker
2024-07-17 05:03:11 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/e123492470 Pull-request: https://github.com/SerenityOS/serenity/pull/21008 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/AtkinsSJ
@ -131,6 +131,9 @@ CppType idl_type_name_to_cpp_type(Type const& type, Interface const& interface)
|
||||
if (is_platform_object(type))
|
||||
return { .name = DeprecatedString::formatted("JS::Handle<{}>", type.name()), .sequence_storage_type = SequenceStorageType::MarkedVector };
|
||||
|
||||
if (is_javascript_builtin(type))
|
||||
return { .name = DeprecatedString::formatted("JS::Handle<JS::{}>", type.name()), .sequence_storage_type = SequenceStorageType::MarkedVector };
|
||||
|
||||
if (interface.callback_functions.contains(type.name()))
|
||||
return { .name = "JS::Handle<WebIDL::CallbackType>", .sequence_storage_type = SequenceStorageType::MarkedVector };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user