mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00: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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue