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