Fix bustage from checkin for bug Bug 479566

This commit is contained in:
Blake Kaplan
2009-02-21 14:25:43 -08:00
parent 27cd859ed3
commit 2a8a8d8292

View File

@@ -1193,10 +1193,12 @@ js_MakeArraySlow(JSContext *cx, JSObject *obj)
* we can tell when only named properties have been added to a dense array
* to make it slow-but-not-sparse.
*/
uint32 length = obj->fslots[JSSLOT_ARRAY_LENGTH];
obj->fslots[JSSLOT_ARRAY_COUNT] = INT_FITS_IN_JSVAL(length)
? INT_TO_JSVAL(length)
: JSVAL_VOID;
{
uint32 length = obj->fslots[JSSLOT_ARRAY_LENGTH];
obj->fslots[JSSLOT_ARRAY_COUNT] = INT_FITS_IN_JSVAL(length)
? INT_TO_JSVAL(length)
: JSVAL_VOID;
}
/* Make sure we preserve any flags borrowing bits in classword. */
obj->classword ^= (jsuword) &js_ArrayClass;