summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testINITELEM.js
blob: 2d7567a24d000981e3c657bcb857a55aff8fff9c (plain)
1
2
3
4
5
6
7
8
function testINITELEM()
{
    var x;
    for (var i = 0; i < 10; ++i)
        x = { 0: 5, 1: 5 };
    return x[0] + x[1];
}
assertEq(testINITELEM(), 10);