Bug 925547 - Suppress GC in debug-only call, r=terrence

--HG--
extra : rebase_source : 7ef1a453699c88962140129c9581df379a0637e9
This commit is contained in:
Steve Fink 2013-10-11 22:02:24 -07:00
parent 78c2facbb2
commit 8c62d30470

View File

@ -593,6 +593,7 @@ js::ExecuteKernel(JSContext *cx, HandleScript script, JSObject &scopeChainArg, c
#ifdef DEBUG
if (thisv.isObject()) {
RootedObject thisObj(cx, &thisv.toObject());
AutoSuppressGC nogc(cx);
JS_ASSERT(GetOuterObject(cx, thisObj) == thisObj);
}
#endif