michael@0: (function () { michael@0: p = function () { michael@0: Set() michael@0: }; michael@0: var Set = function () {}; michael@0: for (var x = 0; x < 5; x++) { michael@0: Set = function (z) { michael@0: return function () { michael@0: [z] michael@0: } michael@0: } (x) michael@0: } michael@0: })() michael@0: michael@0: /* michael@0: * bug 535930, mistakenly generated code to GetUpvar and crashed inside the call. michael@0: * so don't crash. michael@0: */ michael@0: