js/src/jit-test/tests/basic/testBug762473.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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.

michael@0 1 function f(i) {
michael@0 2 var a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a16,a17;
michael@0 3 var b = true;
michael@0 4 if (b)
michael@0 5 function f1() {}
michael@0 6 if (b)
michael@0 7 function f2() {}
michael@0 8 if (b)
michael@0 9 function f3() {}
michael@0 10 if (b)
michael@0 11 function f4() {}
michael@0 12 if (b)
michael@0 13 function f5() {}
michael@0 14 if (b)
michael@0 15 function f6() {}
michael@0 16 if (b)
michael@0 17 function f7() {}
michael@0 18 if (b)
michael@0 19 function f8() {}
michael@0 20 if (b)
michael@0 21 function f9() {}
michael@0 22 if (b)
michael@0 23 function f10() {}
michael@0 24 if (b)
michael@0 25 function f11() {}
michael@0 26 if (b)
michael@0 27 function f12() {}
michael@0 28 if (b)
michael@0 29 function f13() {}
michael@0 30 if (b)
michael@0 31 function f14() {}
michael@0 32 if (b)
michael@0 33 function f15() {}
michael@0 34 if (b)
michael@0 35 function f16() {}
michael@0 36 if (b)
michael@0 37 function f17() {}
michael@0 38
michael@0 39 a1 = i;
michael@0 40
michael@0 41 function f() {
michael@0 42 return a1;
michael@0 43 }
michael@0 44
michael@0 45 return f();
michael@0 46 }
michael@0 47
michael@0 48 for (var i = 0; i < 100; ++i)
michael@0 49 assertEq(f(i), i);

mercurial