LibJS: Remove superfluous exception check from get_own_property_descriptor()

Accessing elements of the storage Vector can't throw.
This commit is contained in:
Linus Groh
2021-04-10 17:39:32 +02:00
committed by Andreas Kling
parent d0813be65a
commit 4788c94d34

View File

@@ -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;
}