2018-03-24 16:22:20 +05:30

21 lines
230 B
JavaScript

let called = false;
class A {
method() {
called = true;
}
get methodName() {
return "method";
}
}
class B extends A {
constructor() {
super[super().methodName]()
}
}
new B();
expect(called).toBe(true);