Bug 971673: Assert that AutoJSAPI is always given a JSContext. r=bobowen

This commit is contained in:
Jim Blandy 2014-08-28 10:00:56 -07:00
parent 03c76f7c7b
commit 9425b091ec

View File

@ -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