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:
parent
3eca8cb243
commit
f8eb616fe3
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue