michael@0: a = []; michael@0: for (var i = 0; i < 1000; i++) { michael@0: a[i] = i; michael@0: } michael@0: function foo(x) { michael@0: for (var i in x) { michael@0: } michael@0: } michael@0: if (typeof schedulegc != "undefined") michael@0: schedulegc(100); michael@0: foo(a);