Bug 1070696 - Implement a JSObject* override to AutoJSAPI::Init(). r=smaug
This commit is contained in:
@@ -302,6 +302,12 @@ AutoJSAPI::Init(nsIGlobalObject* aGlobalObject)
|
||||
return Init(aGlobalObject, nsContentUtils::GetDefaultJSContextForThread());
|
||||
}
|
||||
|
||||
bool
|
||||
AutoJSAPI::Init(JSObject* aObject)
|
||||
{
|
||||
return Init(xpc::NativeGlobal(aObject));
|
||||
}
|
||||
|
||||
bool
|
||||
AutoJSAPI::InitWithLegacyErrorReporting(nsIGlobalObject* aGlobalObject)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user