mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibWeb/IDL: Add support for generating IDL BufferSource type
This commit is contained in:
parent
f4cbafe951
commit
0153514314
Notes:
sideshowbarker
2024-07-17 11:34:34 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/0153514314 Pull-request: https://github.com/SerenityOS/serenity/pull/14563 Reviewed-by: https://github.com/Lubrsi Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/linusg ✅
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ CppType idl_type_name_to_cpp_type(Type const& type, Interface const& interface)
|
|||
if (type.name == "any")
|
||||
return { .name = "JS::Value", .sequence_storage_type = SequenceStorageType::MarkedVector };
|
||||
|
||||
if (type.name == "BufferSource")
|
||||
return { .name = "JS::Handle<JS::Object>", .sequence_storage_type = SequenceStorageType::MarkedVector };
|
||||
|
||||
if (type.name == "sequence") {
|
||||
auto& parameterized_type = verify_cast<ParameterizedType>(type);
|
||||
auto& sequence_type = parameterized_type.parameters.first();
|
||||
|
|
Loading…
Add table
Reference in a new issue