Bug 1124935 - Remove LookupProperty from JS_GetPropertyDescriptor. r=efaust,bz
This commit is contained in:
@@ -1173,7 +1173,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
|
||||
return false;
|
||||
|
||||
Rooted<PropertyDescriptor> desc(cx);
|
||||
if (!JS_GetPropertyDescriptorById(cx, proto, id, &desc))
|
||||
if (!GetPropertyDescriptor(cx, proto, id, &desc))
|
||||
return false;
|
||||
|
||||
if (desc.object()) {
|
||||
@@ -1183,7 +1183,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
|
||||
}
|
||||
|
||||
/*
|
||||
* If JS_GetPropertyDescriptorById above removed a property from
|
||||
* If GetPropertyDescriptorById above removed a property from
|
||||
* ni, start over.
|
||||
*/
|
||||
if (props_end != ni->props_end || props_cursor != ni->props_cursor)
|
||||
|
||||
Reference in New Issue
Block a user