зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
ddbfba57d8
Коммит
ed6ab111b7
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче