Skip to content

Commit efea150

Browse files
committed
JS: Resolve global type refs
1 parent c8c6744 commit efea150

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

javascript/ql/lib/semmle/javascript/internal/UnderlyingTypes.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ module UnderlyingTypes {
8080
mod = "global"
8181
)
8282
or
83+
exists(LocalTypeAccess type |
84+
node = type and
85+
not exists(type.getLocalTypeName()) and
86+
name = type.getName() and
87+
mod = "global"
88+
)
89+
or
8390
exists(Node mid | nodeHasUnderlyingType(mid, mod, name) |
8491
TypeFlow::step(mid, node)
8592
or

0 commit comments

Comments
 (0)