Closed Ratstail91 closed 1 year ago
for loops normally look like this
{
pre clause
conditional
if false jump to end
{
body
}
post clause
jump to conditional
end
}
pop stack
If you unilaterally removed the scope around the body, then this would break:
for (var i = 0; i < 10; i++) var j = null; //j gets declared over and over again.
Might need to insert scope implicitly when not detected...
remove these and test it