mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix GC hazard in fun_trace, bug 693754.
This commit is contained in:
parent
19e2a50062
commit
ed28c77902
@ -1669,8 +1669,12 @@ fun_trace(JSTracer *trc, JSObject *obj)
|
||||
if (fun->atom)
|
||||
MarkString(trc, fun->atom, "atom");
|
||||
|
||||
if (fun->isInterpreted() && fun->script())
|
||||
MarkScript(trc, fun->script(), "script");
|
||||
if (fun->isInterpreted()) {
|
||||
if (fun->script())
|
||||
MarkScript(trc, fun->script(), "script");
|
||||
if (fun->callScope())
|
||||
MarkObject(trc, *fun->callScope(), "fun_callscope");
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user