mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03: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
@ -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…
Reference in New Issue
Block a user