Add assertion that documents a relationship between two of the args. Bug

333392, r+sr=sicking
This commit is contained in:
bzbarsky%mit.edu 2006-04-15 01:52:32 +00:00
Родитель fa09229848
Коммит d8be2472d1
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -840,6 +840,10 @@ nsXBLService::GetBinding(nsIContent* aBoundElement, nsIURI* aURI,
PRBool aPeekOnly, PRBool* aIsReady,
nsXBLBinding** aResult)
{
NS_ASSERTION(aPeekOnly || aResult,
"Must have non-null out param if not just peeking to see "
"whether the binding is ready");
if (aResult)
*aResult = nsnull;