Daniel Tschinder f36a6987e4
Correctly preserve reference to array in for-of loop (#9697)
* Correctly preserve reference to array in for-of loop

* Add more tests
2019-03-17 21:41:35 -07:00

6 lines
63 B
JavaScript

function f(...t) {
for (let o of t) {
const t = o;
}
}