LibWeb: Add support for the IDL any type

The any type is essentially a raw JS::Value.
This commit is contained in:
Luke Wilde 2021-09-11 23:28:55 +01:00 committed by Andreas Kling
parent 3eca8cb243
commit f8eb616fe3
Notes: sideshowbarker 2024-07-18 04:12:41 +09:00

View File

@ -716,6 +716,10 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter
} else {
@return_statement@
}
)~~~");
} else if (parameter.type.name == "any") {
scoped_generator.append(R"~~~(
auto @cpp_name@ = @js_name@@js_suffix@;
)~~~");
} else {
dbgln("Unimplemented JS-to-C++ conversion: {}", parameter.type.name);