summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1640737.js
blob: 9a1609a28391854452503264200fe65714533457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function g(arr) {
    var res = [];
    for (var i = 0; i < arr.length; i++) {
        var el = arr[i];
        res.push(el);
    }
    return res;
}
function f() {
    for (var i = 0; i < 2; i++) {
        var obj = {__proto__: []};
        for (var j = 0; j < 1500; j++) {
            g([13.37, obj]);
        }
    }
}
f();