Bug 771026 - Replace JSProperty with Shape (r=bhackett)

This commit is contained in:
Bill McCloskey
2012-07-04 19:34:06 -07:00
parent ab65f264a0
commit 473e0699b1
25 changed files with 248 additions and 262 deletions

View File

@@ -993,7 +993,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
if (obj->getProto()) {
JSObject *proto = obj->getProto();
RootedObject obj2(cx);
JSProperty *prop;
RootedShape prop(cx);
RootedId id(cx);
if (!ValueToId(cx, StringValue(*idp), id.address()))
return false;
@@ -1002,7 +1002,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
if (prop) {
unsigned attrs;
if (obj2->isNative())
attrs = ((Shape *) prop)->attributes();
attrs = prop->attributes();
else if (!obj2->getGenericAttributes(cx, id, &attrs))
return false;