mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Add Uint8ClampedArray as supported parameter type
Adds Uint8ClampedArray as supported parameter type to our BindingsGenerator.
This commit is contained in:
parent
f374e64dfc
commit
09779ab4a6
Notes:
sideshowbarker
2024-07-16 20:08:14 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/09779ab4a6 Pull-request: https://github.com/SerenityOS/serenity/pull/23727 Reviewed-by: https://github.com/Lubrsi
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter
|
|||
auto @cpp_name@ = JS::make_handle(TRY(@js_name@@js_suffix@.to_object(vm)));
|
||||
)~~~");
|
||||
}
|
||||
} else if (parameter.type->name() == "BufferSource" || parameter.type->name() == "Float32Array" || parameter.type->name() == "Float64Array" || parameter.type->name() == "Uint8Array") {
|
||||
} else if (parameter.type->name().is_one_of("BufferSource", "Float32Array", "Float64Array", "Uint8Array", "Uint8ClampedArray")) {
|
||||
if (optional) {
|
||||
scoped_generator.append(R"~~~(
|
||||
Optional<JS::Handle<WebIDL::BufferSource>> @cpp_name@;
|
||||
|
|
Loading…
Reference in a new issue