Hmmm, new changes these are.
git-svn-id: svn://10.0.0.236/trunk@32641 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -9,14 +9,17 @@ class BinaryNode extends ExpressionNode {
|
||||
|
||||
void evalLHS(Environment theEnv)
|
||||
{
|
||||
left.evalLHS(theEnv);
|
||||
JSValue lV = theEnv.theStack.pop();
|
||||
right.eval(theEnv);
|
||||
|
||||
if (op == ".")
|
||||
lV.getProp(theEnv);
|
||||
if (op == ".") {
|
||||
left.eval(theEnv);
|
||||
JSValue lV = theEnv.theStack.pop();
|
||||
if (right instanceof JSIdentifier)
|
||||
theEnv.theStack.push((JSValue)right);
|
||||
else
|
||||
right.eval(theEnv);
|
||||
theEnv.theStack.push(lV);
|
||||
}
|
||||
else
|
||||
super.evalLHS(theEnv);
|
||||
throw new RuntimeException("bad lValue operator " + op);
|
||||
}
|
||||
|
||||
void eval(Environment theEnv)
|
||||
|
||||
Reference in New Issue
Block a user