Bug 572945 - TM: dense arrays specify the wrong number of reserved slots (2

vs 3).  r=gal.
This commit is contained in:
Nicholas Nethercote
2010-06-22 00:18:51 -07:00
parent ff0294cf5b
commit 975c77d7c3
2 changed files with 3 additions and 1 deletions

View File

@@ -1086,7 +1086,7 @@ array_getObjectOps(JSContext *cx, JSClass *clasp)
JSClass js_ArrayClass = {
"Array",
JSCLASS_HAS_RESERVED_SLOTS(2) |
JSCLASS_HAS_RESERVED_SLOTS(JSObject::DENSE_ARRAY_FIXED_RESERVED_SLOTS) |
JSCLASS_HAS_CACHED_PROTO(JSProto_Array),
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, js_TryValueOf, array_finalize,