mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
16 lines
370 B
Java
16 lines
370 B
Java
class AssignmentNode extends BinaryNode {
|
|
|
|
AssignmentNode(String aOp, ExpressionNode aLeft, ExpressionNode aRight)
|
|
{
|
|
super(aOp, aLeft, aRight);
|
|
}
|
|
|
|
JSValue eval(Environment theEnv)
|
|
{
|
|
JSReference lV = left.evalLHS(theEnv);
|
|
JSValue rV = right.eval(theEnv);
|
|
|
|
return lV.base.putProp(theEnv, lV.id, rV);
|
|
}
|
|
|
|
} |