blob: de115bc5318154e323d093b7006de47d181429d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function F() {}
function G() {}
function f() {
for (var i = 0; i < 10000; ++i) {
var o = Reflect.construct(F, []);
assertEq(Object.getPrototypeOf(o), F.prototype);
}
for (var i = 0; i < 10000; ++i) {
var o = Reflect.construct(F, [], G);
assertEq(Object.getPrototypeOf(o), G.prototype);
}
}
for (var i = 0; i < 2; ++i) f();
|