DescriptionStatically check for assignments to const in harmony mode.
The ES.next draft rev 4 in section 11.13 reads:
It is a Syntax Error if the AssignmentExpression is contained in extended code
and the LeftHandSideExpression is an Identifier that does not statically resolve
to a declarative environment record binding or if the resolved binding is an
immutable binding.
This CL adds corresponding static checks for the immutable binding case.
TEST=mjsunit/harmony/block-const-assign
Committed: http://code.google.com/p/v8/source/detail?r=10156
Patch Set 1 #
Total comments: 6
Patch Set 2 : Addressed first round of comments. #
Total comments: 6
Patch Set 3 : Addressed second round of comments. #
Messages
Total messages: 5 (0 generated)
|