1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/testOOMInAutoEnterCompartment.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +// |jit-test| slow 1.5 +// This test is too slow to run with ASan in a debug configuration 1.6 +if (getBuildConfiguration()['asan'] && getBuildConfiguration()['debug']) quit(0); 1.7 + 1.8 +function fatty() { 1.9 + try { 1.10 + fatty(); 1.11 + } catch (e) { 1.12 + foo(); 1.13 + } 1.14 +} 1.15 + 1.16 +if (!getBuildConfiguration()['root-analysis']) { // >:( 1.17 + foo = evalcx("(function foo() { foo.bar() })"); 1.18 + foo.bar = evalcx("(function bar() {})"); 1.19 + 1.20 + fatty(); 1.21 +}