Source code

Revision control

Copy as Markdown

Other Tools

load(libdir + "asserts.js");
class C extends class {} {
constructor() {
try {
return 0;
} catch {
super();
}
}
}
function test() {
for (var i = 0; i < 100; ++i) {
assertThrowsInstanceOf(() => new C(), TypeError);
}
}
test();