Switching to JSValue throughout. Implementing operators per base type.
git-svn-id: svn://10.0.0.236/trunk@32415 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -27,8 +27,8 @@ class ConditionalNode extends ControlNode {
|
||||
ControlNode eval(Environment theEnv)
|
||||
{
|
||||
ControlNode n = super.eval(theEnv);
|
||||
double d = theEnv.theStack.pop().d;
|
||||
if (d != 0.0)
|
||||
JSBoolean b = theEnv.theStack.pop().toJSBoolean();
|
||||
if (b.isTrue())
|
||||
return trueCode;
|
||||
else
|
||||
return n;
|
||||
|
||||
Reference in New Issue
Block a user