• conradw's avatar
    [es6] Fix completion values of for loops with lexical variables · 1bb051b8
    conradw authored
    Currently, the desugaring of for loops of the form for
    (let/const ...; bla; bla) causes them to always have a
    completion value of 1, regardless of whether the loop body
    is executed or not. This CL fixes this, realigning
    initializer blocks as a more general purpose way to avoid
    the completion value rewriter (since that's all they really
    do anyway).
    
    BUG=
    
    Review URL: https://codereview.chromium.org/1177053006
    
    Cr-Commit-Position: refs/heads/master@{#29108}
    1bb051b8
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...
test262-es6 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...