michael@0: function TestCase(n, d) {} michael@0: function reportCompare() { michael@0: new TestCase; michael@0: } michael@0: Object.defineProperty(Object.prototype, "name", {}); michael@0: reportCompare(); michael@0: try { michael@0: function TestCase( n, d ) { michael@0: this.name = n; michael@0: this.description = d; michael@0: } michael@0: reportCompare(); michael@0: reportCompare(); michael@0: } catch(exc3) { assertEq(0, 1); }