http://code.google.com/p/chromium/issues/detail?id=50316
What steps will reproduce the problem?
Execute:
var arr = [0, 1, 2];
for (var i=0; i<arr.length; i++) {
arr[i] = -1;
console.log(arr);
}
What is the expected result?
[-1, 1, 2]
[-1, -1, 2]
[-1, -1, -1]
What happens instead?
3 [-1, -1, -1]
What steps will reproduce the problem?
Execute:
var arr = [0, 1, 2];
for (var i=0; i<arr.length; i++) {
arr[i] = -1;
console.log(arr);
}
What is the expected result?
[-1, 1, 2]
[-1, -1, 2]
[-1, -1, -1]
What happens instead?
3 [-1, -1, -1]