bug 310456: Make sure that fun->u.script is non-null, since we set interpreted before we're sure to have a script. r=shaver
This commit is contained in:
Родитель
8b2b6b2f30
Коммит
42c0f29bbf
|
@ -1353,7 +1353,7 @@ fun_mark(JSContext *cx, JSObject *obj, void *arg)
|
|||
JS_MarkGCThing(cx, fun, js_private_str, arg);
|
||||
if (fun->atom)
|
||||
GC_MARK_ATOM(cx, fun->atom, arg);
|
||||
if (fun->interpreted)
|
||||
if (fun->interpreted && fun->u.script)
|
||||
js_MarkScript(cx, fun->u.script, arg);
|
||||
}
|
||||
return 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче