js/src/jit-test/tests/jaeger/bug591602.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 try {
     2     for (x in ['']) {
     3         gczeal(2)
     4     }
     5 } catch(e) {}
     6 try {
     7     var x, e
     8     p()
     9 } catch(e) {}
    10 try { (function() {
    11         let(x)((function() {
    12             let(y)((function() {
    13                 try {
    14                     let(c) o
    15                 } finally { (f, [1,2,3])
    16                 }
    17             }))
    18         }))
    19     })()
    20 } catch(e) {}
    21 try { (function() {
    22         if (x.w("", (function() {
    23             t
    24         })())) {}
    25     })()
    26 } catch(e) {}
    27 try {
    28     gczeal()
    29 } catch(e) {}
    30 try { (function() {
    31         for (let w in [0, 0]) let(b)((function() {
    32             let(x = w = [])((function() {
    33                 for (let a in []);
    34             }))
    35         })())
    36     })()
    37 } catch(e) {}
    39 /* Don't assert with -m only. */

mercurial