mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Cope with stillborn funobj tracing via newborn root (390743, r=igor).
This commit is contained in:
parent
e9dd239757
commit
bccb956372
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user