Add missing |#ifdef JS_GC_ZEAL| to fix bustage.
authorreed@reedloden.com
Thu, 31 Jan 2008 11:39:40 -0800
changeset 11113 f764570c00ce209c9ce413a2130afa09838734f9
parent 11112 027b53262571a9f321bfa8d973ed2c7918e97814
child 11114 6c091ce8c00422460ebbbd96ae8e18bc5c832015
push idunknown
push userunknown
push dateunknown
milestone1.9b3pre
Add missing |#ifdef JS_GC_ZEAL| to fix bustage.
dom/src/base/nsJSEnvironment.cpp
--- a/dom/src/base/nsJSEnvironment.cpp
+++ b/dom/src/base/nsJSEnvironment.cpp
@@ -3204,19 +3204,22 @@ nsJSContext::ScriptEvaluated(PRBool aTer
          cur = cur->mNext) {
       (*(cur->mTerminationFunc))(cur->mTerminationFuncArg);
     }
     delete start;
   }
 
   mNumEvaluations++;
 
+#ifdef JS_GC_ZEAL
   if (mContext->runtime->gcZeal >= 2) {
     ::JS_MaybeGC(mContext);
-  } else if (mNumEvaluations > 20) {
+  } else
+#endif
+  if (mNumEvaluations > 20) {
     mNumEvaluations = 0;
     ::JS_MaybeGC(mContext);
   }
 
   mOperationCallbackTime = LL_ZERO;
 }
 
 nsresult