michael@0: // bug 511575 michael@0: michael@0: Function.prototype.X = 42; michael@0: michael@0: function ownProperties() { michael@0: var props = {}; michael@0: var r = function () {}; michael@0: michael@0: outer: michael@0: for (var a in r) { michael@0: for (var b in r) { michael@0: if (a == b) { michael@0: continue outer; michael@0: } michael@0: } michael@0: print("SHOULD NOT BE REACHED"); michael@0: props[a] = true; michael@0: } michael@0: return props; michael@0: } michael@0: michael@0: for (var i = 0; i < 12; ++i) { michael@0: print(i); michael@0: ownProperties(); michael@0: }