1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/spread-call-recursion.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +let a = []; 1.5 +a.length = 30; 1.6 + 1.7 +function check(f) { 1.8 + try { 1.9 + f(); 1.10 + } catch (e) { 1.11 + assertEq(e.message, "too much recursion"); 1.12 + } 1.13 +} 1.14 + 1.15 +let f = function() f(...a) + 1; 1.16 +let g = () => g(...a) + 1; 1.17 +let h = function() new h(...a) + 1; 1.18 + 1.19 +check(f); 1.20 +check(g); 1.21 +check(h);