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