js/src/jit-test/tests/gc/bug-948423.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 if (!this.hasOwnProperty("TypedObject"))
     2   quit();
     4 var ArrayType = TypedObject.ArrayType;
     5 var StructType = TypedObject.StructType;
     6 var uint8 = TypedObject.uint8;
     7 var uint32 = TypedObject.uint32;
     8 var ObjectType = TypedObject.Object;
     9 function runTests() {
    10   (function DimensionLinkedToUndimension() {
    11     var UintsA = uint32.array();
    12     var FiveUintsA = UintsA.dimension(5);
    13     var FiveUintsB = uint32.array(5);
    14     assertEq(true, 
    15 	FiveUintsA.equivalent(FiveUintsB)
    16 	);
    17   })();
    18   (function PrototypeHierarchy() {
    19     schedulegc(3);
    20     var Uint8s = uint8.array();
    21   })();
    22 }
    23 runTests();

mercurial