Bug 438052 - Live JSScripts can be destroyed by script-object finalizer (r=brendan)

This commit is contained in:
Jason Orendorff 2008-06-12 15:58:07 -05:00
parent 809ef905cb
commit 7179330b25

View File

@ -1608,6 +1608,11 @@ js_TraceScript(JSTracer *trc, JSScript *script)
} while (i != 0);
}
if (script->object) {
JS_SET_TRACING_NAME(trc, "object");
JS_CallTracer(trc, script->object, JSTRACE_OBJECT);
}
if (IS_GC_MARKING_TRACER(trc) && script->filename)
js_MarkScriptFilename(script->filename);
}