summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testOOMInAutoEnterCompartment.js
blob: 693d61b0867c7fbcef62f4e80484f47518a18e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| slow
// This test is too slow to run with ASan in a debug configuration
if (getBuildConfiguration()['asan'] && getBuildConfiguration()['debug']) quit(0);

function fatty() {
    try {
        fatty();
    } catch (e) {
        foo();
    }
}

if (!getBuildConfiguration()['root-analysis']) { // >:(
    foo = evalcx("(function foo() { foo.bar() })");
    foo.bar = evalcx("(function bar() {})");

    fatty();
}