js/src/jit-test/tests/ion/900683.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 if (typeof ParallelArray === "undefined")
     2   quit();
     4 ParallelArray(11701, function() {
     5     return /x/
     6 }).reduce(function(a) {
     7     if (a % 9) {
     8         for (var y = 0; y; ++y) {}
     9         return []
    10     }
    11 })
    13 function foo() {
    14   return "foo";
    15 }
    17 function test() {
    18 var a = [1, 2, 3];
    19 var s = '';
    20 for (var x of a)
    21   for (var i of 'y')
    22     s += '' + foo()
    23 } test();
    25 ignoreComments = [];
    27 function bug909276() {
    28 var actual = '';
    29 for (var next of ignoreComments) {
    30   actual += a;
    31   for (var b in x) {
    32     actual += b.eval("args = [-0, NaN, -1/0]; this.f(-0, NaN, -1/0);");
    33   }
    34 }
    35 var y = Iterator([1,2,3], true);
    36 for (var c in y) {}
    37 } bug909276();

mercurial