blob: 21b8a3a05c3c69307c6736eba7ab8a2ae3a84633 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class foo extends null {
constructor() {
// Explicit returns of undefined should act the same as falling off the
// end of the function. That is to say, they should throw.
return undefined;
}
}
for (let i = 0; i < 1100; i++)
assertThrownErrorContains(() => new foo(), "this");
if (typeof reportCompare === 'function')
reportCompare(0,0,"OK");
|