* Check that super.* is after super() at runtime * "missing super() call in constructor" runtime * "'this' is not allowed before super()" runtime
14 lines
142 B
JavaScript
14 lines
142 B
JavaScript
class Bar {
|
|
test() {}
|
|
}
|
|
|
|
class Foo extends Bar {
|
|
constructor() {
|
|
const t = () => super.test()
|
|
super();
|
|
t();
|
|
}
|
|
}
|
|
|
|
new Foo();
|