Tim McClure e068281e28 Fix super Method Calls in Class Private Methods (#9704)
This fixes an issue with the use of super method calls in class private methods. See https://github.com/babel/babel/issues/9580 for more info re: behavior of the bug.
2019-03-19 18:43:02 +01:00

15 lines
196 B
JavaScript

class Base {
superMethod() {
return 1017;
}
}
class Sub extends Base {
#privateMethod() {
return super.superMethod();
}
publicMethod() {
return this.#privateMethod();
}
}