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 var loop1 = '', loop2 = '', actual = '';
3 var obj = {};
4 for (var i = 0; i < 10; i++) {
5 obj['a' + i] = i;
6 loop1 += i;
7 loop2 += 'a' + i;
8 }
10 Object.defineProperty(obj, 'z', {enumerable: true, get: function () {
11 for (var y in obj)
12 actual += y;
13 }});
14 (function() {
15 for each (var e in obj)
16 actual += e;
17 })();
19 assertEq(actual, loop1 + loop2 + "z" + "undefined");