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

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

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

    fatty();
}