diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-02-15 13:14:54 +0330 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-02-16 22:48:32 +0330 |
commit | 57997ed3363b7df5a00db46958054fc20d789dcb (patch) | |
tree | 858dbc21e8c18dbd565c207c50cc73e0669e94ff /Meta | |
parent | ce6adf25e58ec3a0334a57859967aabdb086c935 (diff) | |
download | serenity-57997ed3363b7df5a00db46958054fc20d789dcb.zip |
Meta: Support DOMExceptions when invoking IDL getters/setters
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp index bca1a76f57..c89fa11a4e 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator.cpp @@ -4080,7 +4080,7 @@ JS_DEFINE_NATIVE_FUNCTION(@prototype_class@::@attribute.getter_callback@) } } else { attribute_generator.append(R"~~~( - auto retval = impl->@attribute.cpp_getter_name@(); + auto retval = TRY(throw_dom_exception_if_needed(global_object, [&] { return impl->@attribute.cpp_getter_name@(); })); )~~~"); } |