js/src/jit-test/tests/gc/bug-912734.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() {
     2     Object.defineProperty(this, "h2", {
     3         e: false,
     4         e: false,
     5         get: function() {
     6             return {}
     7         }
     8     })
     9 })()
    10 a2 = new Array
    11 Object.create(a2);
    12 (function() {
    13     Object.defineProperty(this, "t2", {
    14         e: true,
    15         e: RegExp(""),
    16         get: function() {
    17             return new Uint32Array(this.a2)
    18         }
    19     })
    20 })()
    21 r = (function() {
    22     for each(let c in []) {}
    23 })()
    24 var r = 1;
    25 s = ""
    26 print(s.match(r));
    27 r.l
    28 with(b = 3);
    29 t2;
    30 (function() {
    31     Object.defineProperty(a2, 3, {
    32         e: false,
    33         e: true,
    34         get: (function() {
    35             evalcx("[]", s.g)
    36         })
    37     })
    38 })()
    39 h2
    40 r = RegExp("");
    41 r.exec();
    42 schedulegc(7);
    43 t2;

mercurial