Bug 898886 - Improve threadsafe assertions when accessing runtimes and zones, r=billm.

This commit is contained in:
Brian Hackett
2013-08-05 08:48:34 -06:00
parent 0e430d4732
commit 2f7e1b21d3
56 changed files with 348 additions and 271 deletions

View File

@@ -829,10 +829,8 @@ PropertyIteratorObject::trace(JSTracer *trc, JSObject *obj)
void
PropertyIteratorObject::finalize(FreeOp *fop, JSObject *obj)
{
if (NativeIterator *ni = obj->as<PropertyIteratorObject>().getNativeIterator()) {
obj->as<PropertyIteratorObject>().setNativeIterator(NULL);
if (NativeIterator *ni = obj->as<PropertyIteratorObject>().getNativeIterator())
fop->free_(ni);
}
}
Class PropertyIteratorObject::class_ = {