mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibJS: Remove superfluous exception check from get_own_property_descriptor()
Accessing elements of the storage Vector can't throw.
This commit is contained in:
parent
d0813be65a
commit
4788c94d34
1 changed files with 0 additions and 2 deletions
|
@ -372,8 +372,6 @@ Optional<PropertyDescriptor> Object::get_own_property_descriptor(const PropertyN
|
||||||
if (!metadata.has_value())
|
if (!metadata.has_value())
|
||||||
return {};
|
return {};
|
||||||
value = m_storage[metadata.value().offset];
|
value = m_storage[metadata.value().offset];
|
||||||
if (vm().exception())
|
|
||||||
return {};
|
|
||||||
attributes = metadata.value().attributes;
|
attributes = metadata.value().attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue