DescriptionProhibit 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
Committed: https://crrev.com/7e113c47b7da741761a5e813017f9a738769b41c
Cr-Commit-Position: refs/heads/master@{#31115}
Patch Set 1 #Patch Set 2 : More plumbing and tests #Patch Set 3 : fix broken, incorrect test #
Total comments: 1
Patch Set 4 : Fix let let in test #Patch Set 5 : messages test #
Total comments: 1
Patch Set 6 : better tests #
Total comments: 1
Patch Set 7 : remove messages.js test #
Messages
Total messages: 25 (11 generated)
|