1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed method evaluation with property target

This commit is contained in:
Brian Fiete 2020-10-17 06:11:32 -07:00
parent 687addf7a5
commit a700a6bbd2

View file

@ -7857,7 +7857,7 @@ void DbgExprEvaluator::DoInvocation(BfAstNode* target, BfSizedArray<ASTREF(BfExp
} }
else else
VisitChild(memberRefExpression->mTarget); VisitChild(memberRefExpression->mTarget);
//GetResult(); GetResult();
if (mResult.mType == NULL) if (mResult.mType == NULL)
return; return;
thisValue = mResult; thisValue = mResult;
@ -7883,6 +7883,8 @@ void DbgExprEvaluator::DoInvocation(BfAstNode* target, BfSizedArray<ASTREF(BfExp
bool hadError = false; bool hadError = false;
thisValue = LookupIdentifier(qualifiedName->mLeft, true, &hadError); thisValue = LookupIdentifier(qualifiedName->mLeft, true, &hadError);
if (!thisValue)
thisValue = GetResult();
if (hadError) if (hadError)
return; return;
if (!thisValue) if (!thisValue)