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 function testMap() {
2 // Test map elemental fun args
3 var p = [1,2,3,4];
4 var m = p.mapPar(function(e) {
5 assertEq(e >= 1 && e <= 4, true);
6 });
7 var m = p.mapPar(function(e,i) {
8 assertEq(e >= 1 && e <= 4, true);
9 assertEq(i >= 0 && i < 4, true);
10 });
11 var m = p.mapPar(function(e,i,c) {
12 assertEq(e >= 1 && e <= 4, true);
13 assertEq(i >= 0 && i < 4, true);
14 assertEq(c, p);
15 });
16 }
18 if (getBuildConfiguration().parallelJS)
19 testMap();