summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testOOMInAutoEnterCompartment.js
blob: ea78fd67edafe903a6d147e721e773ac154b085a (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();
    }
}


foo = evalcx("(function foo() { foo.bar() })");
foo.bar = evalcx("(function bar() {})");

fatty();