1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:58:12 +00:00

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

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