for-of in Firefox

# Axel Rauschmayer (11 years ago)

Does Firefox not yet do the one binding per loop iteration? I would have expected the output 0 in the following code.

let arr = [];
for (let i of [0, 1, 2]) {
    arr.push(() => i);
}
console.log(arr[0]()); // 2
# Rick Waldron (11 years ago)

The implementation predates ES6 let: bugzilla.mozilla.org/show_bug.cgi?id=950547