mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 879341 - Use an AutoPushJSContext in JSD. r=gabor
We can do this now, since it won't cause infinite recursion.
This commit is contained in:
parent
3e0ac7f12e
commit
4c7eef9edd
@ -2508,7 +2508,7 @@ jsdService::ActivateDebugger (JSRuntime *rt)
|
||||
if (!mCx)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
JSContext *cx = JSD_GetDefaultJSContext (mCx);
|
||||
mozilla::AutoPushJSContext cx(JSD_GetDefaultJSContext (mCx));
|
||||
JS::RootedObject glob(cx, JSD_GetDefaultGlobal (mCx));
|
||||
|
||||
/* init xpconnect on the debugger's context in case xpconnect tries to
|
||||
|
Loading…
Reference in New Issue
Block a user