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 testMap() {
4 var p = range(0, minItemsTestingThreshold);
5 var v = [1];
6 var func = function (e) {
7 v[0] = e;
8 return 0;
9 };
11 // this will compile, but fail at runtime
12 assertParallelExecWillBail(m => p.mapPar(func, m));
13 }
15 if (getBuildConfiguration().parallelJS)
16 testMap();