зеркало из https://github.com/mozilla/pjs.git
Bug 735594 - Add check for MOZ_JSDEBUGGER so that --enable-jsd=no works. r=bholley
This commit is contained in:
Родитель
2afc6a09b6
Коммит
8930ab7204
|
@ -63,7 +63,9 @@
|
|||
#include "WrapperFactory.h"
|
||||
#include "AccessCheck.h"
|
||||
|
||||
#ifdef MOZ_JSDEBUGGER
|
||||
#include "jsdIDebuggerService.h"
|
||||
#endif
|
||||
|
||||
#include "XPCQuickStubs.h"
|
||||
#include "dombindings.h"
|
||||
|
@ -2443,8 +2445,10 @@ nsXPConnect::Peek(JSContext * *_retval)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef MOZ_JSDEBUGGER
|
||||
void
|
||||
nsXPConnect::CheckForDebugMode(JSRuntime *rt) {
|
||||
nsXPConnect::CheckForDebugMode(JSRuntime *rt)
|
||||
{
|
||||
JSContext *cx = NULL;
|
||||
|
||||
if (gDebugMode == gDesiredDebugMode) {
|
||||
|
@ -2511,6 +2515,14 @@ fail:
|
|||
JS_SetRuntimeDebugMode(rt, false);
|
||||
gDesiredDebugMode = gDebugMode = false;
|
||||
}
|
||||
#else //MOZ_JSDEBUGGER not defined
|
||||
void
|
||||
nsXPConnect::CheckForDebugMode(JSRuntime *rt)
|
||||
{
|
||||
gDesiredDebugMode = gDebugMode = false;
|
||||
}
|
||||
#endif //#ifdef MOZ_JSDEBUGGER
|
||||
|
||||
|
||||
NS_EXPORT_(void)
|
||||
xpc_ActivateDebugMode()
|
||||
|
|
Загрузка…
Ссылка в новой задаче