summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1216607.js
blob: 5187a47b8e7126bca916ab63fe8ab7c44c83d607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (!('oomTest' in this))
    quit();

enableSPSProfilingWithSlowAssertions();
try {
(function() {
   while (n--) {
   }
})();
} catch(exc1) {}
function arrayProtoOutOfRange() {
    function f(obj) {}
    function test() {
        for (var i = 0; i < 1000; i++)
            var r = f(i % 2 ? a : b);
    }
    test();
}
oomTest(arrayProtoOutOfRange);