diff --git a/dom/src/base/nsDOMClassInfo.cpp b/dom/src/base/nsDOMClassInfo.cpp index dcfacdd0d8b5..de7e5f28ecac 100644 --- a/dom/src/base/nsDOMClassInfo.cpp +++ b/dom/src/base/nsDOMClassInfo.cpp @@ -5422,8 +5422,7 @@ nsDOMClassInfo::UnsetExternallyReferenced(nsIDOMGCParticipant *aParticipant) { NS_PRECONDITION(aParticipant, "unexpected null pointer"); - NS_ASSERTION(sExternallyReferencedTable.ops, - "Unexpected null sExternallyReferencedTable.ops"); + NS_ASSERTION(sExternallyReferencedTable.ops, "unbalanced call"); if (sExternallyReferencedTable.ops) { #ifdef DEBUG PRUint32 count = sExternallyReferencedTable.entryCount; @@ -5431,8 +5430,8 @@ nsDOMClassInfo::UnsetExternallyReferenced(nsIDOMGCParticipant *aParticipant) PL_DHashTableOperate(&sExternallyReferencedTable, aParticipant, PL_DHASH_REMOVE); #ifdef DEBUG - NS_ASSERTION(count != sExternallyReferencedTable.entryCount, - "DOMGCParticipant wasn't removed from sExternallyReferencedTable."); + NS_ASSERTION(count == sExternallyReferencedTable.entryCount + 1, + "unbalanced call"); #endif }