michael@0: function test() { michael@0: function Bug() { this.prototype } michael@0: var actual = (new Bug instanceof Bug); michael@0: assertEq(actual, true); michael@0: } michael@0: test(); michael@0: test(); michael@0: michael@0: function testLambdaCtor() { michael@0: var q; michael@0: for (var x = 0; x < 2; ++x) { michael@0: var f = function(){}; michael@0: if (x == 1) gc(); michael@0: q = new f; michael@0: } michael@0: return q.__proto__ === f.prototype; michael@0: } michael@0: assertEq(testLambdaCtor(), true);