js/src/jit-test/tests/auto-regress/bug661840.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 // |jit-test| error:ReferenceError
     3 // Binary: cache/js-dbg-32-11714be33655-linux
     4 // Flags: -m -n
     5 //
     6 function f(a) {}
     7 s = [{
     8   s: [],
     9   s: function(d, b) {},
    10   t: function() {
    11     try {} catch (e) {}
    12   }
    13 }, {
    14   t: "",
    15   s: [],
    16   s: function(d, b) {}
    17 }, {
    18   t: "",
    19   s: [],
    20   s: function(d, b) {},
    21   t: function() {}
    22 }, {
    23   t: "",
    24   x: "",
    25   s: [],
    26   g: function(b) {},
    27   t: function(f) {}
    28 }, {
    29   t: "",
    30   s: [],
    31   s: function() {}
    32 }];
    33 v = 0
    34 Function("gc(evalcx('lazy'))")();
    35 gczeal();
    36 gc();
    37 (function() {
    38   x
    39 })()

mercurial