Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
1 function trees() {
2 var i = 0, o = [0,0,0];
3 for (i = 0; i < 100; ++i) {
4 if ((i & 1) == 0) o[0]++;
5 else if ((i & 2) == 0) o[1]++;
6 else o[2]++;
7 }
8 return String(o);
9 }
10 assertEq(trees(), "50,25,25");