summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2022-07-13 21:22:40 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-17 00:23:19 +0100
commit0153514314eb82ac3751c42d8e4916bcdb2333a4 (patch)
tree1637bd4fe6f75bb8eb78f2adae308eeda52aee19 /Meta
parentf4cbafe9513018f58e0a0a783dd40550ef148cd7 (diff)
downloadserenity-0153514314eb82ac3751c42d8e4916bcdb2333a4.zip
LibWeb/IDL: Add support for generating IDL BufferSource type
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
index 92a4fa0d31..00de95247a 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
@@ -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();