Bug 898886 - Improve threadsafe assertions when accessing runtimes and zones, r=billm.
This commit is contained in:
@@ -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_ = {
|
||||
|
||||
Reference in New Issue
Block a user