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)