mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02: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