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 // arr is an Int8Array, then changes to Int16Array.
2 // This should trigger recompilation of f.
3 var arr = new Int8Array(100);
4 var arr16 = new Int16Array(100);
5 arr16[2] = 12345;
6 function f(a) {
7 var x;
8 for(var i=0; i<30; i++) {
9 x = a[2];
10 }
11 return x;
12 }
13 assertEq(f(arr), 0);
14 assertEq(f(arr), 0);
15 this.arr = arr16;
16 assertEq(f(arr), 12345);