Bug 1057219 - Add write barrier for the owner of COW elements, r=billm.

This commit is contained in:
Brian Hackett 2014-08-26 14:12:23 -07:00
parent 8ee4903e6b
commit b477b631eb

View File

@ -3519,6 +3519,8 @@ JSObject::CopyElementsForWrite(ThreadSafeContext *cx, JSObject *obj)
if (newCapacity >= NELEMENTS_LIMIT)
return false;
JSObject::writeBarrierPre(obj->getElementsHeader()->ownerObject());
ObjectElements *newheader = AllocateElements(cx, obj, newAllocated);
if (!newheader)
return false;