From da6a3546f069031b3f411c1e2c3b4162034d50f8 Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Fri, 19 Apr 2002 20:58:03 +0000 Subject: [PATCH] Removing one more time creating of bogus activation for InterpretedScript added with the previous change --- js/rhino/src/org/mozilla/javascript/Interpreter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/rhino/src/org/mozilla/javascript/Interpreter.java b/js/rhino/src/org/mozilla/javascript/Interpreter.java index 9a447329ab5f..e0d9b76b3235 100644 --- a/js/rhino/src/org/mozilla/javascript/Interpreter.java +++ b/js/rhino/src/org/mozilla/javascript/Interpreter.java @@ -1513,7 +1513,7 @@ public class Interpreter extends LabelTable { DebugFrame debuggerFrame = null; boolean useActivationVars = false; if (cx.debugger != null) { - if (!theData.itsNeedsActivation) { + if (theData.itsFunctionType != 0 && !theData.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args);