LibWeb/IDL: Add support for generating IDL BufferSource type

This commit is contained in:
Kenneth Myhra 2022-07-13 21:22:40 +02:00 committed by Linus Groh
parent f4cbafe951
commit 0153514314

View file

@ -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();