Remove hole count from dense arrays (580846, r=njn).

This commit is contained in:
Andreas Gal
2010-07-22 18:45:21 -07:00
parent 583a9af1bf
commit bf0a5193fe
10 changed files with 128 additions and 294 deletions

View File

@@ -277,7 +277,7 @@ EnumerateDenseArrayProperties(JSContext *cx, JSObject *obj, JSObject *pobj, uint
return false;
}
if (pobj->getDenseArrayCount() > 0) {
if (pobj->getArrayLength() > 0) {
size_t capacity = pobj->getDenseArrayCapacity();
Value *vp = pobj->dslots;
for (size_t i = 0; i < capacity; ++i, ++vp) {