mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 17:59:34 +00:00
Fix silly way to write an assertion. sr=jst
This commit is contained in:
parent
f230455df7
commit
edbc3f3029
@ -1634,10 +1634,8 @@ NS_IMETHODIMP nsJSEnvironment::Observe(nsISupports *aSubject,
|
|||||||
const char *aTopic,
|
const char *aTopic,
|
||||||
const PRUnichar *someData)
|
const PRUnichar *someData)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
NS_ASSERTION(!nsCRT::strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID),
|
||||||
if (nsCRT::strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID))
|
"not shutdown");
|
||||||
NS_ASSERTION(0,"not shutdown");
|
|
||||||
#endif
|
|
||||||
NS_RELEASE_THIS(); // release ref from |GetScriptingEnvironment|
|
NS_RELEASE_THIS(); // release ref from |GetScriptingEnvironment|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user