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:
parent
e713e6ebc7
commit
176947189b
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue