Bug 686582 - Start adjust existing algorithms to use element-specific methods in preference to jsid-generalized ones. r=dvander

This commit is contained in:
Jeff Walden
2011-08-10 14:54:52 -07:00
parent 10cdb9e766
commit 566bfd0a08
6 changed files with 36 additions and 40 deletions

View File

@@ -408,7 +408,7 @@ static bool
GetElementsSlow(JSContext *cx, JSObject *aobj, uint32 length, Value *vp)
{
for (uint32 i = 0; i < length; i++) {
if (!aobj->getProperty(cx, INT_TO_JSID(jsint(i)), &vp[i]))
if (!aobj->getElement(cx, i, &vp[i]))
return false;
}