summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug558814.js
blob: 63a9f877ba2cfd3e8928746c9d7f5893d493684f (plain)
1
2
3
4
5
6
7
8
9
10
function f()
{
    var a = [];
    a.length = 10;
    for (var i = 0; i < 100; i++) {
        var y = a[a.length];
    }
}
f();
// No assertEq() call, the test is just that it shouldn't assert or crash.