* Check that super.* is after super() at runtime * "missing super() call in constructor" runtime * "'this' is not allowed before super()" runtime
10 lines
151 B
JavaScript
10 lines
151 B
JavaScript
class Bar {}
|
|
|
|
class Foo extends Bar {
|
|
constructor() {
|
|
super.foo(super());
|
|
}
|
|
}
|
|
|
|
assert.throws(() => new Foo(), /this hasn't been initialised/);
|