summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug642985-2.js
blob: 478b585591bae42586ded404e1dcb48d54268c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function f(N)
{
        for (var i = 0; i != N; ++i) {
                var obj1 = {}, obj2 = {};
                obj1['a'+i] = 0;
                obj2['b'+i] = 0;
                for (var repeat = 0;repeat != 2; ++repeat) {
                        for (var j in obj1) {
                                for (var k in obj2) {
                                        gc();
                                }
                        }
                }
        }
}
var array = [function() { f(10); },
    function(array) { f(50); },
    function() { propertyIsEnumerable.call(undefined, {}); },
    ];
try {
  for (var i = 0; i != array.length; ++i)
    array[i]();
} catch (e) {}