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