When using for+let, the loop variable isn't available in the when clause #992
Labels
Comments
Turns out this is slightly narrower; the actual issue only occurs when the loop variable is the entirety of the when clause. |
Actually there's another bug underneath: for let {}:k in v when k > 0
... gives var i$, ref$, len$;
for (i$ = 0, len$ = (ref$ = v).length; i$ < len$; ++i$) {
if (k > 0) {
(fn$.call(this, ref$[i$]));
}
}
function fn$(){
throw Error('unimplemented');
} |
vendethiel
added a commit
to vendethiel/LiveScript
that referenced
this issue
Jan 10, 2018
vendethiel
added a commit
to vendethiel/LiveScript
that referenced
this issue
Jan 10, 2018
vendethiel
added a commit
to vendethiel/LiveScript
that referenced
this issue
Jan 10, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
exemple:
result:
expected:
The text was updated successfully, but these errors were encountered: