mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
Meta: Support DOMExceptions when invoking IDL getters/setters
This commit is contained in:
parent
ce6adf25e5
commit
57997ed336
1 changed files with 1 additions and 1 deletions
|
@ -4080,7 +4080,7 @@ JS_DEFINE_NATIVE_FUNCTION(@prototype_class@::@attribute.getter_callback@)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
attribute_generator.append(R"~~~(
|
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
Add a link
Reference in a new issue