Bug 871306 - Add an API for directly accessing the default JSD global and use it in ActivateDebugger. r=gabor

This commit is contained in:
Bobby Holley
2013-05-22 15:42:43 -06:00
parent 694facc19d
commit dcec1ca48f
3 changed files with 14 additions and 1 deletions

View File

@@ -67,6 +67,13 @@ JSD_GetDefaultJSContext(JSDContext* jsdc)
return jsdc->dumbContext;
}
JSD_PUBLIC_API(JSObject*)
JSD_GetDefaultGlobal(JSDContext* jsdc)
{
JSD_ASSERT_VALID_CONTEXT(jsdc);
return jsdc->glob;
}
JSD_PUBLIC_API(JSRuntime*)
JSD_GetJSRuntime(JSDContext* jsdc)
{