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 // |jit-test| slow;
3 load(libdir + "parallelarray-helpers.js")
5 function buildComprehension() {
6 var pa1 = Array.buildPar(256, function (idx) { return idx; });
7 for (var i = 0; i < 20000; i++) {
8 print(i);
9 buildAndCompare();
10 }
12 function buildAndCompare() {
13 // this will be ion-generated:
14 var pa2 = Array.buildPar(256, function (idx) { return idx; });
15 assertStructuralEq(pa1, pa2);
16 }
17 }
19 if (getBuildConfiguration().parallelJS)
20 buildComprehension();