mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mPropDef->mIsStatic)
|
||||||
|
{
|
||||||
SetAndRestoreValue<BfTypedValue> prevResult(mResult, target);
|
SetAndRestoreValue<BfTypedValue> prevResult(mResult, target);
|
||||||
CheckResultForReading(mResult);
|
CheckResultForReading(mResult);
|
||||||
|
}
|
||||||
return BfTypedValue();
|
return BfTypedValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue