mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 438052 - Live JSScripts can be destroyed by script-object finalizer (r=brendan)
This commit is contained in:
parent
809ef905cb
commit
7179330b25
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user