summaryrefslogtreecommitdiff
path: root/Meta/Lagom
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-10-30 17:50:04 +0000
committerLinus Groh <mail@linusgroh.de>2022-10-31 14:12:44 +0000
commitacfb5460488410c2bd9bf8094b72cb088d7f9cf7 (patch)
tree37afb247b8413df2601a003387f22a71cd3df615 /Meta/Lagom
parentf01d90aa635953abf270d2c68bae6676837986f5 (diff)
downloadserenity-acfb5460488410c2bd9bf8094b72cb088d7f9cf7.zip
LibWeb: Handle currently ignored `WebIDL::ExceptionOr<T>`s
Diffstat (limited to 'Meta/Lagom')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
index 9eac983237..49f3fa9d76 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
@@ -2677,14 +2677,14 @@ JS_DEFINE_NATIVE_FUNCTION(@prototype_class@::@attribute.setter_callback@)
if (attribute.extended_attributes.contains("Reflect")) {
if (attribute.type->name() != "boolean") {
attribute_generator.append(R"~~~(
- impl->set_attribute(HTML::AttributeNames::@attribute.reflect_name@, cpp_value);
+ MUST(impl->set_attribute(HTML::AttributeNames::@attribute.reflect_name@, cpp_value));
)~~~");
} else {
attribute_generator.append(R"~~~(
if (!cpp_value)
impl->remove_attribute(HTML::AttributeNames::@attribute.reflect_name@);
else
- impl->set_attribute(HTML::AttributeNames::@attribute.reflect_name@, String::empty());
+ MUST(impl->set_attribute(HTML::AttributeNames::@attribute.reflect_name@, String::empty()));
)~~~");
}
} else {