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

Moved #endif to exclude important call. r/sr=jst.
This commit is contained in:
mstoltz%netscape.com 2001-11-27 00:29:20 +00:00
Родитель ddbfba57d8
Коммит ed6ab111b7
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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)