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:out of memory
3 gcPreserveCode();
4 evaluate("gcparam(\"maxBytes\", gcparam(\"gcBytes\") + 4*1024);");
5 evaluate("\
6 function testDontEnum(F) { \
7 function test() {\
8 var upvar = \"\";\
9 function f() { upvar += \"\"; }\
10 typeof (new test(\"1\")) != 'function'\
11 }\
12 test();\
13 } \
14 var list = [];\
15 for (i in list)\
16 var F = this[list[i]];\
17 actual = testDontEnum(F);\
18 ");