michael@0: function testLambdaCtor() { michael@0: var a = []; michael@0: for (var x = 0; x < 9; ++x) { michael@0: var f = function(){}; michael@0: a[a.length] = new f; michael@0: } michael@0: michael@0: assertEq([8].__proto__ !== a[7].__proto__, true); michael@0: michael@0: // Assert that the last f was properly constructed. michael@0: return a[8].__proto__ === f.prototype; michael@0: } michael@0: assertEq(testLambdaCtor(), true);