summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug756919.js
blob: a72f46bece4ea46dd16c64fa118aca36aa3d8e83 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: !('oomTest' in this)
function test(x) {
    var upvar = "";
    function f() { upvar += ""; }
    if (x > 0)
        test(x - 1);
    eval('');
}

oomTest(() => test(10));