mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:18:14 +00:00
LibWeb/IDL: Add support for returning JS::Object from IDL functions
This commit is contained in:
parent
a9a9614b6b
commit
df2c0588ea
1 changed files with 4 additions and 0 deletions
|
@ -1501,6 +1501,10 @@ static void generate_wrap_statement(SourceGenerator& generator, String const& va
|
|||
|
||||
dictionary_generator.append(R"~~~(
|
||||
@result_expression@ dictionary_object@recursion_depth@;
|
||||
)~~~");
|
||||
} else if (type.name == "object") {
|
||||
scoped_generator.append(R"~~~(
|
||||
@result_expression@ JS::Value(const_cast<JS::Object*>(@value@));
|
||||
)~~~");
|
||||
} else {
|
||||
if (wrapping_reference == WrappingReference::No) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue