summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1234414.js
blob: 2aeda2c8971771364a6fce26c9a06373b0a6dcbc (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| skip-if: !('oomTest' in this)

oomTest(() => {
    var max = 400;
    function f(b) {
        if (b) {
            f(b - 1);
        } else eval('"use strict"; const z = w; z = 1 + w; c = 5');
    }
    f(max - 1);
});