mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
JS: Update type usage in ClassValidator.qll
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user