blob: edab65959e0a015b6f78774d2a0e0d4ac8eae7c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Test written by André Bargull for bug 1380953.
var q = 0;
function fn() {}
var newTarget = Object.defineProperty(fn.bind(), "prototype", {
get() {
++q;
return null;
}
});
for (var i = 0; i < 100; ++i) {
Reflect.construct(fn, [], newTarget);
}
assertEq(q, 100);
|