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.
15 lines
196 B
JavaScript
15 lines
196 B
JavaScript
class Base {
|
|
superMethod() {
|
|
return 1017;
|
|
}
|
|
}
|
|
|
|
class Sub extends Base {
|
|
#privateMethod() {
|
|
return super.superMethod();
|
|
}
|
|
|
|
publicMethod() {
|
|
return this.#privateMethod();
|
|
}
|
|
} |