Bug 840278 - Mark the presence of sparse indexes in type information for object initializers, r=jandem.

This commit is contained in:
Brian Hackett 2013-02-14 07:29:35 -07:00
parent 649c8cee47
commit 6224889f8d

View File

@ -3366,6 +3366,9 @@ TypeCompartment::fixObjectType(JSContext *cx, HandleObject obj)
return;
}
if (obj->isIndexed())
objType->setFlags(cx, OBJECT_FLAG_SPARSE_INDEXES);
jsid *ids = cx->pod_calloc<jsid>(obj->slotSpan());
if (!ids) {
cx->compartment->types.setPendingNukeTypes(cx);