Backed out changeset 8f7b8cae113d

This commit is contained in:
Robert Sayre 2009-07-23 23:59:51 -04:00
parent ffab1f03f7
commit e6325f3164

View File

@ -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
}
}
}