We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04aea33 commit d131776Copy full SHA for d131776
1 file changed
javascript/ql/lib/semmle/javascript/internal/NameResolution.qll
@@ -280,8 +280,11 @@ module NameResolution {
280
result = enum.getMemberByName(name).getIdentifier()
281
)
282
or
283
- exists(AssignExpr assign, PropAccess lhs |
284
- lhs.accesses(mod.(Closure::ClosureModule).getExportsVariable().getAnAccess(), name) and
+ exists(AssignExpr assign |
+ assign
285
+ .getLhs()
286
+ .(PropAccess)
287
+ .accesses(mod.(Closure::ClosureModule).getExportsVariable().getAnAccess(), name) and
288
result = assign.getRhs()
289
290
}
0 commit comments