js/src/jit-test/tests/ion/bug710983.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 function g() { }
     3 g();
     6 function f(a, g) {
     7     var x;
     8     if (a) {
     9         x = 12;
    10         print(a);
    11 	x = a + 19;
    12     } else {
    13         x = 20 + a;
    14         g(a);
    15         x += a;
    16     }
    17     return a + x + 12;
    18 }
    19 assertEq(f(0, g), 32);

mercurial