summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testTypeUnstableForIn.js
blob: 0f6b10be401c2fc2563e87bd784e63169787ef54 (plain)
1
2
3
4
5
6
7
8
9
10
function testTypeUnstableForIn() {
    var a = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];
    var x = 0;
    for (var i in a) {
        i = parseInt(i);
        x++;
    }
    return x;
}
assertEq(testTypeUnstableForIn(), 16);