Moved from stack to inline execution.
git-svn-id: svn://10.0.0.236/trunk@33132 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -26,12 +26,11 @@ class ConditionalNode extends ControlNode {
|
||||
|
||||
ControlNode eval(Environment theEnv)
|
||||
{
|
||||
ControlNode n = super.eval(theEnv);
|
||||
JSBoolean b = theEnv.theStack.pop().toJSBoolean(theEnv);
|
||||
JSBoolean b = expr.eval(theEnv).toJSBoolean(theEnv);
|
||||
if (b.isTrue())
|
||||
return trueCode;
|
||||
else
|
||||
return n;
|
||||
return next;
|
||||
}
|
||||
|
||||
String print()
|
||||
|
||||
Reference in New Issue
Block a user