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

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