Cope with stillborn funobj tracing via newborn root (390743, r=igor).

This commit is contained in:
brendan@mozilla.org 2007-08-04 00:31:19 -07:00
parent e9dd239757
commit bccb956372

View File

@ -1497,7 +1497,7 @@ fun_trace(JSTracer *trc, JSObject *obj)
{
JSFunction *fun;
fun = (JSFunction *) OBJ_GET_PRIVATE(cx, obj);
fun = (JSFunction *) JS_GetPrivate(trc->context, obj);
if (fun) {
JS_CALL_TRACER(trc, fun, JSTRACE_FUNCTION, "private");
if (fun->object != obj)