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:
mrbkap%gmail.com 2005-09-30 21:39:11 +00:00
Родитель 1fa3f5ea2b
Коммит a1d295f9e4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;