JS: Update type usage in ClassValidator.qll

This commit is contained in:
Asger F
2025-06-11 10:45:44 +02:00
parent 9d4c38b5f1
commit ace8b09a36

View File

@@ -50,7 +50,7 @@ module ClassValidator {
pragma[noinline]
private ClassDefinition getClassReferencedByPropRead(DataFlow::PropRead read) {
read.getBase().asExpr().getType().unfold().(ClassType).getClass() = result
read.getBase().asExpr().getTypeBinding().getAnUnderlyingClass().getAstNode() = result
}
/**