blob: ab31b7aedd2aa8debb46746538034ef1111a8bb0 [file] [log] [blame]
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");