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 function heavyFn1(i) {
2 if (i == 3) {
3 var x = 3;
4 return [0, i].map(function (i) i + x);
5 }
6 return [];
7 }
9 function heavyFn2(i) {
10 if (i < 1000)
11 return heavyFn1(i);
12 return function () i;
13 }
15 function testHeavy2() {
16 for (var i = 0; i <= 3; i++)
17 heavyFn2(i);
18 }
20 testHeavy2();