1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/recompile/bug661859.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +function TestCase(n, d, e, a) this.expect = e; 1.5 +function reportCompare(expected, actual, description) { 1.6 + typeof actual 1.7 +} 1.8 +expect = 1; 1.9 +var summary = 'Do not assert: top < ss->printer->script->depth'; 1.10 +var actual = 'No Crash'; 1.11 +var expect = 'No Crash'; 1.12 +test(); 1.13 +function test() { 1.14 + try { 1.15 + p = [1].some(function (y) test()) ? 4 : 0x0041 1.16 + } catch (ex) {} 1.17 + reportCompare(expect, actual, summary) 1.18 +} 1.19 +test(); 1.20 +TestCase(); 1.21 +test()