summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1216607.js
blob: 46530c113cb98f46fb96c77aaad6075ef6896663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
enableGeckoProfilingWithSlowAssertions();
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);