From a118d4387073e87105083d5314ba8acca86110c4 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Thu, 31 Jan 2008 11:39:40 -0800 Subject: [PATCH] Add missing |#ifdef JS_GC_ZEAL| to fix bustage. --- dom/src/base/nsJSEnvironment.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dom/src/base/nsJSEnvironment.cpp b/dom/src/base/nsJSEnvironment.cpp index 940b42aecce..a3e598490e1 100644 --- a/dom/src/base/nsJSEnvironment.cpp +++ b/dom/src/base/nsJSEnvironment.cpp @@ -3209,9 +3209,12 @@ nsJSContext::ScriptEvaluated(PRBool aTerminated) 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); }