blob: ea91cd9a481199b230f14bac83838a6fe97c22b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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);
|