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 function outer() {
2 "use strict";
3 function inner() {}
4 return inner;
5 }
6 assertEq(outer().toString().indexOf("use strict") != -1, true);
7 function outer2() {
8 "use strict";
9 function inner() blah;
10 return inner;
11 }
12 assertEq(outer2().toString().indexOf("/* use strict */") != -1, true);