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:
@@ -10,10 +10,10 @@ class AssignmentNode extends BinaryNode {
|
||||
left.evalLHS(theEnv);
|
||||
right.eval(theEnv);
|
||||
|
||||
double dValue = theEnv.theStack.pop().d;
|
||||
String id = theEnv.theStack.pop().id;
|
||||
JSValue rValue = theEnv.theStack.pop();
|
||||
JSValue lValue = theEnv.theStack.pop();
|
||||
|
||||
theEnv.theGlobals.put(id, new Double(dValue));
|
||||
theEnv.theGlobals.put(lValue.toString(), rValue);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user