Bug 940253 - minorgc() returns itself. r=luke

This commit is contained in:
Michael Shuen 2014-01-14 10:23:37 -05:00
parent c9a5f8d774
commit 19836c4dc3

View File

@ -246,14 +246,14 @@ GC(JSContext *cx, unsigned argc, jsval *vp)
static bool
MinorGC(JSContext *cx, unsigned argc, jsval *vp)
{
#ifdef JSGC_GENERATIONAL
CallArgs args = CallArgsFromVp(argc, vp);
#ifdef JSGC_GENERATIONAL
if (args.get(0) == BooleanValue(true))
cx->runtime()->gcStoreBuffer.setAboutToOverflow();
MinorGC(cx, gcreason::API);
#endif
args.rval().setUndefined();
return true;
}