• littledan's avatar
    Fix legacy const for-of/in destructuring · 38465598
    littledan authored
    Previously, using legacy const in for-of/in loops led to a check-fail
    in the parser. This was due to the fact that the destructuring bind
    led to an undefined initialization to undefined in the parser, which
    caused the for loop code to go down a strange path. This patch
    eliminates the undefined initialization in variables declared in
    for-in/of loops, so that that path is not used and the error is
    fixed.
    
    BUG=v8:4461
    LOG=Y
    R=adamk
    
    Review URL: https://codereview.chromium.org/1385913003
    
    Cr-Commit-Position: refs/heads/master@{#31117}
    38465598
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...