Skip to content

Commit

Permalink
Merge pull request #1891 from zentia/fix-AddMethod
Browse files Browse the repository at this point in the history
fix AddMethod
  • Loading branch information
chexiongsheng authored Nov 4, 2024
2 parents d52a536 + cca4d03 commit a0635ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ puerts::WrapData* AddMethod(puerts::JsClassInfo* classInfo, const char* signatur

for(int i = 0; i < classInfo->Methods.size(); ++i)
{
if (classInfo->Methods[i].IsStatic == isStatic && classInfo->Methods[i].IsGetter == isGetter && classInfo->Methods[i].IsGetter == isGetter && classInfo->Methods[i].Name == name)
if (classInfo->Methods[i].IsStatic == isStatic && classInfo->Methods[i].IsGetter == isGetter && classInfo->Methods[i].IsSetter == isSetter && classInfo->Methods[i].Name == name)
{
if (isGetter || isSetter) // no overload for getter or setter
{
Expand Down

0 comments on commit a0635ff

Please sign in to comment.