Skip to content

Commit ace8b09

Browse files
committed
JS: Update type usage in ClassValidator.qll
1 parent 9d4c38b commit ace8b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/frameworks/ClassValidator.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module ClassValidator {
5050

5151
pragma[noinline]
5252
private ClassDefinition getClassReferencedByPropRead(DataFlow::PropRead read) {
53-
read.getBase().asExpr().getType().unfold().(ClassType).getClass() = result
53+
read.getBase().asExpr().getTypeBinding().getAnUnderlyingClass().getAstNode() = result
5454
}
5555

5656
/**

0 commit comments

Comments
 (0)