From e6325f3164321be7dad6f5e08937651fcc28f32d Mon Sep 17 00:00:00 2001 From: Robert Sayre Date: Thu, 23 Jul 2009 23:59:51 -0400 Subject: [PATCH] Backed out changeset 8f7b8cae113d --- js/src/jsscript.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/src/jsscript.cpp b/js/src/jsscript.cpp index bd46de7453e..0edf5070724 100644 --- a/js/src/jsscript.cpp +++ b/js/src/jsscript.cpp @@ -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 - } } }