Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 function g()
2 {
3 function f(v) {
4 v = +v;
5 var infinity = 0.0;
6 var three = 0.0;
7 var nan = 0.;
8 var result = 0;
10 infinity = 1.0 / 0.0;
11 three = v + 2.0;
12 nan = (infinity % three);
13 result = ~~(nan + 42.0);
15 return result | 0;
16 }
17 return f
18 }
20 g = g()
21 var x;
22 for(i=0; i < 20000; ++i)
23 {
24 x = g(1.0)
25 }
26 assertEq(x, 0);