For-Of loop inside For loop causes invalid code to be generated
I'm guessing this was introduced by #124 (closed)
With the dangerous for of transform enabled, attempting to transform code with a for-of loop inside of a for loop produced invalid output.
for (let a = 0; a < 10; a++) {
for (let b of c) {
f()
}
}
produces
for (var a = 0; a < 10; a++) {
for (var i = 0, list = c; i < list.length; i += 1) {
var b = list[i];
= void 0f()
}
}
This is as far down as I was able to whittle the test case. The issue does seem to only happen when both loops are present, and when the for-of is inside the regular for.