Bug 686582 - Begin to specialize ObjectOps::getElementAttributes to not just delegate to ObjectOps::getAttributes. r=dvander

This commit is contained in:
Jeff Walden
2011-08-10 14:54:52 -07:00
parent b337f39c47
commit b345338050
5 changed files with 32 additions and 21 deletions

View File

@@ -1004,10 +1004,8 @@ array_getAttributes(JSContext *cx, JSObject *obj, jsid id, uintN *attrsp)
static JSBool
array_getElementAttributes(JSContext *cx, JSObject *obj, uint32 index, uintN *attrsp)
{
jsid id;
if (!IndexToId(cx, index, &id))
return false;
return array_getAttributes(cx, obj, id, attrsp);
*attrsp = JSPROP_ENUMERATE;
return true;
}
static JSBool