mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 05:25:13 +00:00
Meta: Support DOMExceptions when invoking IDL getters/setters
This commit is contained in:
parent
ce6adf25e5
commit
57997ed336
Notes:
sideshowbarker
2024-07-17 18:42:26 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/57997ed336 Pull-request: https://github.com/SerenityOS/serenity/pull/12548 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -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@(); }));
|
||||
)~~~");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue