Skip to content

Commit 9d4c38b

Browse files
committed
JS: Update type usage in definitions.qll
1 parent 17a687b commit 9d4c38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/definitions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private predicate propertyLookup(Expr prop, AstNode write, string kind) {
126126
private predicate typeLookup(AstNode ref, AstNode decl, string kind) {
127127
exists(TypeAccess typeAccess |
128128
ref = typeAccess.getIdentifier() and
129-
decl = typeAccess.getTypeName().getADefinition() and
129+
decl = typeAccess.getTypeBinding().getTypeDefinition() and
130130
kind = "T"
131131
)
132132
}

0 commit comments

Comments
 (0)