Bug 722028 - Need write barrier for SuppressDeletedPropertyHelper (r=bhackett)
This commit is contained in:
@@ -1029,6 +1029,12 @@ SuppressDeletedPropertyHelper(JSContext *cx, JSObject *obj, StringPredicate pred
|
||||
for (HeapPtr<JSFlatString> *p = idp; p + 1 != props_end; p++)
|
||||
*p = *(p + 1);
|
||||
ni->props_end = ni->end() - 1;
|
||||
|
||||
/*
|
||||
* Invoke the write barrier on this element, since it's
|
||||
* no longer going to be marked.
|
||||
*/
|
||||
ni->props_end->HeapPtr<JSFlatString>::~HeapPtr<JSFlatString>();
|
||||
}
|
||||
|
||||
/* Don't reuse modified native iterators. */
|
||||
|
||||
Reference in New Issue
Block a user