repl: treat "Assignment to const" as syntax error
authorNathan Rajlich <nathan@tootallnate.net>
Tue, 27 Aug 2013 15:57:16 +0000 (08:57 -0700)
committerisaacs <i@izs.me>
Wed, 4 Sep 2013 18:13:41 +0000 (11:13 -0700)
commit54fbb1da96376688f2bffac28486c61f38bf6eaf
tree8c484772d2971a012fc82e14d27fd5a507388af2
parent4631c503e35cd3bb75a10424dd47a73c12ec468e
repl: treat "Assignment to const" as syntax error

Adding a new `repl-harmony` test file here because adding the
`--use_strict --harmony` flags on the main repl test file was causing
lots of unrelated failures, due to global variable assignments and
things like that. This new test file is based off of the original
repl.js test file, but has a lot of the tests stripped out. A test case
for this commit is included though.

Fixes #6132.
lib/repl.js
test/simple/test-repl-harmony.js [new file with mode: 0644]