Bug 1260673 - Use 'in' rather than 'of' for iterating over array indexes; r=evilpie

This commit is contained in:
Morgan Phillips 2016-04-05 12:14:43 -07:00
parent 0ef3ab81a0
commit a2bda2e267

View File

@ -26,7 +26,7 @@ function testArray(arr) {
proxy.sort((x, y) => 1 * x - y);
arr.sort((x, y) => 1 * x - y);
for (let i of arr)
for (let i in arr)
assertEq(arr[i], proxy[i]);
}