mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 01:37:16 +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 PRUnichar *someData)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
if (nsCRT::strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID))
|
||||
NS_ASSERTION(0,"not shutdown");
|
||||
#endif
|
||||
NS_ASSERTION(!nsCRT::strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID),
|
||||
"not shutdown");
|
||||
NS_RELEASE_THIS(); // release ref from |GetScriptingEnvironment|
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user