Bug 1165966 - Update destructor assertions to handle failed initalization r=terrence
* * * Bug 1165966 - Fix bustage due to single argument constructor not being marked explicit r=me
This commit is contained in:
@@ -39,7 +39,10 @@ WeakMapBase::WeakMapBase(JSObject* memOf, JSCompartment* c)
|
||||
|
||||
WeakMapBase::~WeakMapBase()
|
||||
{
|
||||
MOZ_ASSERT(!isInList());
|
||||
MOZ_ASSERT(CurrentThreadIsGCSweeping() || CurrentThreadIsHandlingInitFailure());
|
||||
MOZ_ASSERT_IF(CurrentThreadIsGCSweeping(), !isInList());
|
||||
if (isInList())
|
||||
removeWeakMapFromList(this);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user