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
Notes:
sideshowbarker
2024-07-18 04:12:41 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/f8eb616fe32 Pull-request: https://github.com/SerenityOS/serenity/pull/9981 Reviewed-by: https://github.com/linusg ✅
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
Reference in a new issue