v8/test
littledan 7e113c47b7 Prohibit let in lexical bindings
This patch prohibits lexical bindings from being called 'let', even in
sloppy mode, following the ES2015 specification. The change affects
multiple cases of lexical bindings, including simple let/const declarations
and both kinds of for loops. var and legacy const bindings still permit
the name to be let, including in destructuring cases. Tests are added to
verify, though some cases are commented out since they led to (pre-existing)
crashes.

BUG=v8:4403
R=adamk
LOG=Y

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

Cr-Commit-Position: refs/heads/master@{#31115}
2015-10-05 20:29:22 +00:00
..
benchmarks [Swarming] Presort tests - slowest first. 2015-10-01 19:19:17 +00:00
cctest Prohibit let in lexical bindings 2015-10-05 20:29:22 +00:00
intl Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
js-perf-test [es6] Ship rest parameters. 2015-09-28 11:19:35 +00:00
memory Correctly name memory stat for context snapshot size. 2015-04-10 22:36:02 +00:00
message Prohibit let in lexical bindings 2015-10-05 20:29:22 +00:00
mjsunit Prohibit let in lexical bindings 2015-10-05 20:29:22 +00:00
mozilla MIPS64: Add big-endian support for mips64. 2015-09-29 17:23:55 +00:00
preparser Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
promises-aplus Remove unnecessary coupling between Promise tests and Object.observe 2015-07-21 17:17:07 +00:00
simdjs [Swarming] Presort tests - slowest first. 2015-10-01 19:19:17 +00:00
test262 Prohibit let in lexical bindings 2015-10-05 20:29:22 +00:00
unittests Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
webkit Fix completion of try..finally. 2015-10-01 13:59:56 +00:00
default.gyp Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
default.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
developer_default.gyp Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
developer_default.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00