1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/testClosingRecursion.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +// Test no assert (bug 464089) 1.5 +function shortRecursiveLoop(b, c) { 1.6 + for (var i = 0; i < c; i++) { 1.7 + if (b) 1.8 + shortRecursiveLoop(c - 1); 1.9 + } 1.10 +} 1.11 +function testClosingRecursion() { 1.12 + shortRecursiveLoop(false, 1); 1.13 + shortRecursiveLoop(true, 3); 1.14 + return true; 1.15 +} 1.16 +assertEq(testClosingRecursion(), true);