mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1260673 - Use 'in' rather than 'of' for iterating over array indexes; r=evilpie
This commit is contained in:
parent
0ef3ab81a0
commit
a2bda2e267
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user