Skip to content

Commit b3eac67

Browse files
committed
JS: Resolve global type refs
1 parent 385e663 commit b3eac67

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
@@ -152,6 +152,13 @@ module UnderlyingTypes {
152152
mod = "global"
153153
)
154154
or
155+
exists(LocalTypeAccess type |
156+
node = type and
157+
not exists(type.getLocalTypeName()) and
158+
name = type.getName() and
159+
mod = "global"
160+
)
161+
or
155162
exists(Node mid | nodeHasUnderlyingType(mid, mod, name) |
156163
TypeFlow::step(mid, node)
157164
or

0 commit comments

Comments
 (0)