mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03: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
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 ✅
@ -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…
Reference in New Issue
Block a user