js/src/tests/ecma_3/FunExpr/regress-533254.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 /*
     2  * Any copyright is dedicated to the Public Domain.
     3  * http://creativecommons.org/licenses/publicdomain/
     4  */
     6 var BUGNUMBER = 533254;
     7 var summary = 'init-method late in table-big initialiser screwup';
     9 printBugNumber(BUGNUMBER);
    10 printStatus(summary);
    12 function f() {
    13     var proto = {p8:8};
    14     var obj = {
    15         p0:0, p1:1, p2:2, p3:3, p4:4, p5:5, p6:6, p7:7, p8:8, p9:9, 
    16         p10:0, p11:1, p12:2, p13:3, p14:4, p15:5, p16:6, p17:7, p18:8, p19:9, 
    17         m: function() { return 42; }
    18     };
    19     return obj;
    20 }
    21 var expect = f(),
    22     actual = f();
    24 expect += '';
    25 actual += '';
    26 reportCompare(expect, actual, summary);
    28 printStatus("All tests passed!");

mercurial