js/src/jit-test/tests/basic/spread-call-recursion.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 let a = [];
     2 a.length = 30;
     4 function check(f) {
     5   try {
     6     f();
     7   } catch (e) {
     8     assertEq(e.message, "too much recursion");
     9   }
    10 }
    12 let f = function() f(...a) + 1;
    13 let g = () => g(...a) + 1;
    14 let h = function() new h(...a) + 1;
    16 check(f);
    17 check(g);
    18 check(h);

mercurial