Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium
New issue 762 by [email protected]: Evaluating LeftHandSideExpressions
reference first in with statements
http://code.google.com/p/v8/issues/detail?id=762
We do not currently evalueate the LeftHandSideExpression to get a reference
before evaluating the AssignmentExpression if we are within a "with".
JSC and firefox both agree on 2 being the answer here (and the spec is also
specific on this).
What will reproduce the problem:
var x = 1;
var o = {};
with (o)
x = o.x = 2;
print(x);
Expected result:
2
Actual result:
1
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev