mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940253 - minorgc() returns itself. r=luke
This commit is contained in:
parent
c9a5f8d774
commit
19836c4dc3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user