michael@0: for (var i = 0; i < 10; i++) michael@0: x = {a: function () { return 33; }, a: 4}; michael@0: michael@0: try { michael@0: result = x.a(); michael@0: } catch (exc) { michael@0: result = "threw " + exc.name; michael@0: } michael@0: assertEq(result, "threw TypeError");