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

oomTest(() => {
    try {
        var max = 400;
        function f(b) {
            if (b) {
                f(b - 1);
            } else {
                g = {};
            }
            g.apply(null, arguments);
        }
        f(max - 1);
    } catch(exc0) {}
    f();
});