Bug 572945 - TM: dense arrays specify the wrong number of reserved slots (2
vs 3). r=gal.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user