• littledan's avatar
    Prohibit let in lexical bindings · 7e113c47
    littledan authored
    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}
    7e113c47
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
developer_default.gyp Loading commit data...
developer_default.isolate Loading commit data...