Description[es6] Fix completion values of for loops with lexical variables
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=
Committed: https://crrev.com/1bb051b8a4b81aea753715a833b425d120fb5da6
Cr-Commit-Position: refs/heads/master@{#29108}
Patch Set 1 #
Total comments: 5
Patch Set 2 : cl feedback #Patch Set 3 : offline feedback #
Messages
Total messages: 10 (3 generated)
|