mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02: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:
committed by
Andreas Kling
parent
d0813be65a
commit
4788c94d34
@@ -372,8 +372,6 @@ Optional<PropertyDescriptor> Object::get_own_property_descriptor(const PropertyN
|
||||
if (!metadata.has_value())
|
||||
return {};
|
||||
value = m_storage[metadata.value().offset];
|
||||
if (vm().exception())
|
||||
return {};
|
||||
attributes = metadata.value().attributes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user