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 load(libdir + "parallelarray-helpers.js");
3 function testReduce() {
4 // Test reduce elemental fun args
5 var N = 64;
6 var p = range(1, N+1);
7 var r = p.reducePar(function (a, b) {
8 assertEq(a >= 1 && a <= N, true);
9 assertEq(b >= 1 && b <= N, true);
10 return a;
11 });
12 assertEq(r >= 1 && r <= N, true);
13 }
15 if (getBuildConfiguration().parallelJS)
16 testReduce();