From f63d027b0b686621df5ffdc9fdade919da0ce8b2 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 22 Apr 2023 10:38:31 -0700 Subject: [PATCH] Meta: Fix unresolvable reference to WebIDL::OperationReturnsPromise --- .../LibWeb/BindingsGenerator/IDLGenerators.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp index 0b406511b8..2b3db2a605 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp @@ -817,9 +817,9 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter auto& callback_function = interface.callback_functions.find(parameter.type->name())->value; if (callback_function.return_type->is_object() && callback_function.return_type->name() == "Promise") - callback_function_generator.set("operation_returns_promise", "OperationReturnsPromise::Yes"); + callback_function_generator.set("operation_returns_promise", "WebIDL::OperationReturnsPromise::Yes"); else - callback_function_generator.set("operation_returns_promise", "OperationReturnsPromise::No"); + callback_function_generator.set("operation_returns_promise", "WebIDL::OperationReturnsPromise::No"); // An ECMAScript value V is converted to an IDL callback function type value by running the following algorithm: // 1. If the result of calling IsCallable(V) is false and the conversion to an IDL value is not being performed due to V being assigned to an attribute whose type is a nullable callback function that is annotated with [LegacyTreatNonObjectAsNull], then throw a TypeError. @@ -3288,6 +3288,7 @@ void generate_constructor_implementation(IDL::Interface const& interface, String #elif __has_include() # include #endif +#include )~~~");