Bug 829813 - Add more checks for dense element lookup results, r=billmm.
This commit is contained in:
@@ -1103,7 +1103,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
|
||||
if (prop) {
|
||||
unsigned attrs;
|
||||
if (obj2->isNative())
|
||||
attrs = prop->attributes();
|
||||
attrs = IsImplicitProperty(prop) ? JSPROP_ENUMERATE : prop->attributes();
|
||||
else if (!JSObject::getGenericAttributes(cx, obj2, id, &attrs))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user