Sat, 03 Jan 2015 20:18:00 +0100
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 // |jit-test| slow;
3 load(libdir + "parallelarray-helpers.js")
5 function buildComprehension() {
6 var pa1 = Array.buildPar(256, function (idx) { return idx; });
7 for (var i = 0; i < 20000; i++) {
8 print(i);
9 buildAndCompare();
10 }
12 function buildAndCompare() {
13 // this will be ion-generated:
14 var pa2 = Array.buildPar(256, function (idx) { return idx; });
15 assertStructuralEq(pa1, pa2);
16 }
17 }
19 if (getBuildConfiguration().parallelJS)
20 buildComprehension();