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

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();
});