1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Skip CheckResultForReading check for 'this' on static properties

This commit is contained in:
Brian Fiete 2025-03-04 11:47:07 -08:00
parent e713e6ebc7
commit 176947189b

View file

@ -5284,8 +5284,11 @@ BfTypedValue BfExprEvaluator::LoadProperty(BfAstNode* targetSrc, BfTypedValue ta
}
}
SetAndRestoreValue<BfTypedValue> prevResult(mResult, target);
CheckResultForReading(mResult);
if (!mPropDef->mIsStatic)
{
SetAndRestoreValue<BfTypedValue> prevResult(mResult, target);
CheckResultForReading(mResult);
}
return BfTypedValue();
}