diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/basic/spread-call-recursion.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/basic/spread-call-recursion.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,18 @@ +let a = []; +a.length = 30; + +function check(f) { + try { + f(); + } catch (e) { + assertEq(e.message, "too much recursion"); + } +} + +let f = function() f(...a) + 1; +let g = () => g(...a) + 1; +let h = function() new h(...a) + 1; + +check(f); +check(g); +check(h);