mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 8f7b8cae113d
This commit is contained in:
parent
ffab1f03f7
commit
e6325f3164
@ -1636,16 +1636,14 @@ js_DestroyScript(JSContext *cx, JSScript *script)
|
||||
JSStackFrame *fp = js_GetTopStackFrame(cx);
|
||||
|
||||
if (!(fp && (fp->flags & JSFRAME_EVAL))) {
|
||||
js_PurgePropertyCacheForScript(cx, script);
|
||||
|
||||
if (!cx->runtime->gcRunning) {
|
||||
#ifdef CHECK_SCRIPT_OWNER
|
||||
JS_ASSERT(script->owner == cx->thread);
|
||||
JS_ASSERT(script->owner == cx->thread);
|
||||
#endif
|
||||
js_PurgePropertyCacheForScript(cx, script);
|
||||
#ifdef JS_TRACER
|
||||
if (!cx->runtime->gcRunning)
|
||||
js_PurgeScriptFragments(cx, script);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user