Procházet zdrojové kódy

LibJS: Remove superfluous exception check from get_own_property_descriptor()

Accessing elements of the storage Vector can't throw.
Linus Groh před 4 roky
rodič
revize
4788c94d34
1 změnil soubory, kde provedl 0 přidání a 2 odebrání
  1. 0 2
      Userland/Libraries/LibJS/Runtime/Object.cpp

+ 0 - 2
Userland/Libraries/LibJS/Runtime/Object.cpp

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