fix: properly wrap private class methods (#12192)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user