Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
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();