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

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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