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 testClosureCreation() {
4 var a = range(0, 64);
5 var makeadd1 = function (v) { return function (x) { return x+1; }; };
6 for (var i in MODES) {
7 var m = a.mapPar(makeadd1, MODES[i]);
8 assertEq(m[1](2), 3); // (\x.x+1) 2 == 3
9 }
10 }
12 if (getBuildConfiguration().parallelJS)
13 testClosureCreation();