Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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);