Bug 109113 - misplaced #ifdef DEBUG caused fix not to work in opt builds.

Moved #endif to exclude important call. r/sr=jst.


git-svn-id: svn://10.0.0.236/trunk@108945 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mstoltz%netscape.com
2001-11-27 00:29:20 +00:00
parent 5d69e8d170
commit 51eea64691

View File

@@ -2129,11 +2129,11 @@ nsScriptSecurityManager::nsScriptSecurityManager(void)
#ifdef DEBUG
JSCheckAccessOp oldCallback =
#endif
JS_SetCheckObjectAccessCallback(rt, CheckJSFunctionCallerAccess);
// For now, assert that no callback was set previously
NS_ASSERTION(!oldCallback, "Someone already set a JS CheckObjectAccess callback");
#endif
}
nsScriptSecurityManager::~nsScriptSecurityManager(void)