js/src/jit-test/tests/jaeger/bug819035.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 // This test case check the difference between fp->callee() and fp->fun() on
     2 // lambdas.
     3 (function (a, u) {
     4   var sum = function (array, callback) {
     5     for (var i = 0; i < array.length; i++)
     6       callback(array[i]);
     7   };
     8   (function () {
     9     (function r(t) {
    10        t !== u,
    11          sum(t, function (v)  r(v) );
    12     })(arguments);
    13   })(a);
    14 }) (
    15     [
    16         [
    17             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    18             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    19             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    20             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    21             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    22             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    23             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    24             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    25             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1]
    26         ], [
    27             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    28             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    29             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    30             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    31             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    32             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    33             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    34             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1],
    35             [1], [1], [1], [1], [1], [1], [1], [1], [1], [1]
    36         ]
    37     ]
    38 );

mercurial