Add a flag for legacy const semantics
authorarv <arv@chromium.org>
Tue, 7 Jul 2015 21:57:09 +0000 (14:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Jul 2015 21:57:19 +0000 (21:57 +0000)
commit3973642c98501b3fc5a38c7cde6a908c15222edc
tree523acaa214b3a70172db42b0131a780a9d5f3e0f
parent650ef15c00bcec4189577652676e77c6152fc9ab
Add a flag for legacy const semantics

This flag is on by default but it will allow us to turn that off in
favor of harmony-sloppy in the future.

BUG=v8:3305, v8:2198
LOG=N
R=littledan@chromium.org, rossberg@chromium.org

Review URL: https://codereview.chromium.org/1218803006

Cr-Commit-Position: refs/heads/master@{#29526}
src/flag-definitions.h
src/parser.cc
src/preparser.cc
src/preparser.h
test/cctest/test-parsing.cc
test/message/no-legacy-const-2.js [new file with mode: 0644]
test/message/no-legacy-const-2.out [new file with mode: 0644]
test/message/no-legacy-const-3.js [new file with mode: 0644]
test/message/no-legacy-const-3.out [new file with mode: 0644]
test/message/no-legacy-const.js [new file with mode: 0644]
test/message/no-legacy-const.out [new file with mode: 0644]