mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
Bug 971673: Assert that AutoJSAPI is always given a JSContext. r=bobowen
This commit is contained in:
parent
03c76f7c7b
commit
9425b091ec
@ -240,6 +240,7 @@ AutoJSAPI::AutoJSAPI()
|
||||
void
|
||||
AutoJSAPI::InitInternal(JSObject* aGlobal, JSContext* aCx, bool aIsMainThread)
|
||||
{
|
||||
MOZ_ASSERT(aCx);
|
||||
mCx = aCx;
|
||||
if (aIsMainThread) {
|
||||
// This Rooted<> is necessary only as long as AutoCxPusher::AutoCxPusher
|
||||
|
Loading…
x
Reference in New Issue
Block a user