Bug 830553. Make the asserts in nsWrapperCache.h fatal. r=mccr8

This commit is contained in:
Boris Zbarsky 2013-01-15 14:04:24 -05:00
Родитель e1197ccff3
Коммит 3a50cb6afb
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -67,8 +67,8 @@ public:
}
~nsWrapperCache()
{
NS_ASSERTION(!PreservingWrapper(),
"Destroying cache with a preserved wrapper!");
MOZ_ASSERT(!PreservingWrapper(),
"Destroying cache with a preserved wrapper!");
}
/**
@ -96,8 +96,8 @@ public:
void SetWrapper(JSObject* aWrapper)
{
NS_ASSERTION(!PreservingWrapper(), "Clearing a preserved wrapper!");
NS_ASSERTION(aWrapper, "Use ClearWrapper!");
MOZ_ASSERT(!PreservingWrapper(), "Clearing a preserved wrapper!");
MOZ_ASSERT(aWrapper, "Use ClearWrapper!");
SetWrapperBits(aWrapper);
}
@ -108,7 +108,7 @@ public:
*/
void ClearWrapper()
{
NS_ASSERTION(!PreservingWrapper(), "Clearing a preserved wrapper!");
MOZ_ASSERT(!PreservingWrapper(), "Clearing a preserved wrapper!");
SetWrapperBits(NULL);
}
@ -120,14 +120,14 @@ public:
void SetIsDOMBinding()
{
NS_ASSERTION(!mWrapperPtrBits,
"This flag should be set before creating any wrappers.");
MOZ_ASSERT(!mWrapperPtrBits,
"This flag should be set before creating any wrappers.");
mWrapperPtrBits = WRAPPER_IS_DOM_BINDING;
}
void ClearIsDOMBinding()
{
NS_ASSERTION(!mWrapperPtrBits || mWrapperPtrBits == WRAPPER_IS_DOM_BINDING,
"This flag should be cleared before creating any wrappers.");
MOZ_ASSERT(!mWrapperPtrBits || mWrapperPtrBits == WRAPPER_IS_DOM_BINDING,
"This flag should be cleared before creating any wrappers.");
mWrapperPtrBits = 0;
}