summaryrefslogtreecommitdiff
path: root/Meta/Lagom
diff options
context:
space:
mode:
Diffstat (limited to 'Meta/Lagom')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
index 28a839fd66..062c6c4ffe 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
@@ -1502,6 +1502,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) {
scoped_generator.append(R"~~~(