From 9a9855a2e861c93e397624302ae81542ed1b43bf Mon Sep 17 00:00:00 2001 From: "brendan@mozilla.org" Date: Sat, 4 Aug 2007 00:31:19 -0700 Subject: [PATCH] Cope with stillborn funobj tracing via newborn root (390743, r=igor). --- js/src/jsfun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsfun.c b/js/src/jsfun.c index 8648ab4f42b..791dc5822bf 100644 --- a/js/src/jsfun.c +++ b/js/src/jsfun.c @@ -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)