diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp index 9436cd6119..4f9fb2615b 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp @@ -2442,7 +2442,11 @@ void generate_constructor_implementation(IDL::Interface const& interface) #include #include #include +#include +#include +#include #include +#include #include #if __has_include() # include @@ -2538,7 +2542,7 @@ JS::Value @constructor_class@::construct(FunctionObject&) generator.append(R"~~~( if (should_return_empty(impl)) return JS::Value(); - return @wrapper_class@::create(global_object, impl.release_value()); + return wrap(global_object, *impl.release_value()); )~~~"); } else { // Multiple constructor overloads - can't do that yet.