-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect assignement behaviour in 'let' to 'for' loop variable #423
Comments
Should we remove auto-infusing IIFEs ? Just FTR, this comes from Coco, when we didn't have for x in [10] then let
qS "#el-#{x}" .onclick = -> alert x I don't think this feature is heavily used and we can probably remove it now that we have saud |
Any reason why var i$, ref$, len$, x, y;
for (i$ = 0, len$ = (ref$ = [10]).length; i$ < len$; ++i$) {
x = ref$[i$];
y = 10;
(fn$.call(this, x));
console.log("x : " + x);
console.log("y : " + y);
}
function fn$(x){
x = 42;
y = 42;
} |
As I said, it's called Auto-infusing IIFEs and was used to auto-capture loop vars with |
I see, yeah, I don't think that feature is really needed with |
One would expect
x
to be42
, likey
at that point of the program.The text was updated successfully, but these errors were encountered: