Skip to content

Commit d131776

Browse files
committed
JS: Fix cartesian product in handling of Closure modules
1 parent 04aea33 commit d131776

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,11 @@ module NameResolution {
280280
result = enum.getMemberByName(name).getIdentifier()
281281
)
282282
or
283-
exists(AssignExpr assign, PropAccess lhs |
284-
lhs.accesses(mod.(Closure::ClosureModule).getExportsVariable().getAnAccess(), name) and
283+
exists(AssignExpr assign |
284+
assign
285+
.getLhs()
286+
.(PropAccess)
287+
.accesses(mod.(Closure::ClosureModule).getExportsVariable().getAnAccess(), name) and
285288
result = assign.getRhs()
286289
)
287290
}

0 commit comments

Comments
 (0)