js/src/jit-test/tests/jaeger/bug549602.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 version(180)
     2 function f1(code) {
     3     var c
     4     var t = code.replace(/s/, "")
     5     var f = new Function(code)
     6     var o
     7     e = v = f2(f, c)
     8 }
     9 function f2(f, e) {
    10     try {
    11         a = f()
    12     } catch(r) {
    13         var r = g()
    14     }
    15 }
    16 g1 = [{
    17     text: "(function sum_slicing(array){return array==0?0:a+sum_slicing(array.slice(1))})",
    18     test: function (f) {
    19         f([, 2]) == ""
    20     }
    21 }];
    22 (function () {
    23     for (var i = 0; i < g1.length; ++i) {
    24         var a = g1[i]
    25         var text = a.text
    26         var f = eval(text.replace(/@/, ""))
    27         if (a.test(f)) {}
    28     }
    29 }())
    30 f1("for(let a=0;a<6;a++){print([\"\"].some(function(){false>\"\"}))}")

mercurial