summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/inflate-oom.js
blob: 2a3187e41c8920e9987625404fbe40231a06487b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if (!('oomTest' in this))
    quit();
function test() {
    function foo() {
        return 1;
    };
    oomTest(() => {
        gc();
        foo.toString();
    });
}
var s = ";".repeat(70000);
s += test.toString() + "test()";
s += ";".repeat(70000);
eval(s);