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 + "eqArrayHelper.js");
3 var check = [];
4 function t(token) {
5 check.push(token);
6 return token;
7 }
8 let f = (...x) => x;
9 f(3, ...[t(1)], ...[t(2), t(3)], 34, 42, ...[t(4)]);
10 assertEqArray(check, [1, 2, 3, 4]);
12 var arr = [1, 2, 3];
13 assertEqArray(f(...arr, arr.pop()), [1, 2, 3, 3]);