Skip to content

Commit 54e8b9f

Browse files
committed
Correct map named exports to a data flow node
1 parent 9868d61 commit 54e8b9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ module NameResolution {
4343
this = spec.getLocal() and
4444
result = DataFlow::valueNode(spec)
4545
)
46+
or
47+
exists(ExportDeclaration exprt, string name |
48+
exprt.exportsAs(this, name) and
49+
result = exprt.getSourceNode(name)
50+
)
4651
}
4752
}
4853

0 commit comments

Comments
 (0)