blob: 2c76c6e9b0d100f2055bf1194fae8ca37eb7175e [file] [log] [blame]
class Base {}
class Derived extends Base {
constructor() {
super.method();
super();
}
};
function test() {
let failed = false
try {
new Derived();
failed = true;
} catch (e) {
if (!(e instanceof ReferenceError))
failed = true;
}
if (failed)
throw "did not throw reference error";
}
for (i = 0; i < 10000; i++) {
test();
}