Bug 1124935 - Remove LookupProperty from JS_GetPropertyDescriptor. r=efaust,bz

This commit is contained in:
Tom Schuster
2015-02-06 15:43:20 +01:00
parent 5f2777ef9b
commit 6bad7f314c
11 changed files with 70 additions and 58 deletions

View File

@@ -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)