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| error:InternalError
3 // Binary: cache/js-dbg-32-4ce3983a43f4-linux
4 // Flags:
5 //
7 function assertEq(setter) {
8 if (setter > 10)
9 return {assertEq: 3.3};
10 return {__proto__: assertEq(setter + 1)};
11 }
12 function testX() {
13 var x = 2;
14 var local0 = x;
15 return { local0: local0 };
16 }
17 var resultsX = testX();
18 assertEq(resultsX.local0, 2);
19 gczeal(2);
20 assertEq(new (Proxy.createFunction({}, function(){}, function(){})), undefined);