v8/test
keuchel@chromium.org 08b4262512 Statically 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

Review URL: http://codereview.chromium.org/8688007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10156 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-12-05 14:43:28 +00:00
..
benchmarks Switch from sample shell to d8 for unit test 2011-07-26 05:56:45 +00:00
cctest MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
es5conform MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
message MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
mjsunit Statically check for assignments to const in harmony mode. 2011-12-05 14:43:28 +00:00
mozilla MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
preparser MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
sputnik MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
test262 MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00