mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:47:45 +00:00
LibJS: Convert internal_has_property() to ThrowCompletionOr
This commit is contained in:
parent
5da210125e
commit
d9895ec12d
10 changed files with 32 additions and 32 deletions
|
@ -70,9 +70,9 @@ JS::ThrowCompletionOr<bool> ConsoleGlobalObject::internal_define_own_property(JS
|
|||
return m_window_object->internal_define_own_property(property_name, descriptor);
|
||||
}
|
||||
|
||||
bool ConsoleGlobalObject::internal_has_property(JS::PropertyName const& property_name) const
|
||||
JS::ThrowCompletionOr<bool> ConsoleGlobalObject::internal_has_property(JS::PropertyName const& property_name) const
|
||||
{
|
||||
return Object::internal_has_property(property_name) || m_window_object->internal_has_property(property_name);
|
||||
return TRY(Object::internal_has_property(property_name)) || TRY(m_window_object->internal_has_property(property_name));
|
||||
}
|
||||
|
||||
JS::Value ConsoleGlobalObject::internal_get(JS::PropertyName const& property_name, JS::Value receiver) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue