소스 검색

Skip CheckResultForReading check for 'this' on static properties

Brian Fiete 6 달 전
부모
커밋
176947189b
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 5 - 2
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -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();
 	return BfTypedValue();
 }
 }