summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testThinForEach.js
blob: 85e5ca2d361987ecb720c26944b7e5f6081c514a (plain)
1
2
3
4
5
6
7
8
9
10
function testThinForEach() {
    var a = ["red"];
    var n = 0;
    for (var i = 0; i < 10; i++)
        for each (var v in a)
            if (v)
                n++;
    return n;
}
assertEq(testThinForEach(), 10);