fix: properly wrap private class methods (#12192)

This commit is contained in:
Huáng Jùnliàng
2020-10-16 10:12:50 -04:00
committed by GitHub
parent 31396b286d
commit a9cd0945b7
4 changed files with 31 additions and 1 deletions

View File

@@ -124,7 +124,7 @@ function plainFunction(path: NodePath, callId: Object) {
}
export default function wrapFunction(path: NodePath, callId: Object) {
if (path.isClassMethod() || path.isObjectMethod()) {
if (path.isMethod()) {
classOrObjectMethod(path, callId);
} else {
plainFunction(path, callId);