michael@0: g0 = function(i) { michael@0: this["g"+(i+1)] = g0; michael@0: return "g"+(i+1); michael@0: } michael@0: function f() { michael@0: a = eval("g0"); michael@0: for(var i=0; i<40; i++) { michael@0: a = this[a(i)]; michael@0: if (i === 30) { michael@0: gc(); michael@0: } michael@0: assertEq(this["g" + i], g0); michael@0: } michael@0: } michael@0: f();