summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug624041-2.js
blob: 6eb1b78f9640b8e149af9363449ef8fe3ae74fac (plain)
1
2
3
4
5
6
7
8
9
10
11
var s = '';

var a = [, 0, 1];
for (var i in a) {
    a.reverse();
    s += i + ',';
}

// Index of the element with value '0'.
assertEq(s, '1,');