Skip to content

Commit f5db4f0

Browse files
committed
JS: Fix for export declarations
1 parent 03bc334 commit f5db4f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ module NameResolution {
8181
node2 = imprt.getImportedPathExpr()
8282
)
8383
or
84+
// Same as above, but for re-export declarations
85+
exists(ReExportDeclaration exprt |
86+
node1 = exprt.getReExportedModule() and
87+
node2 = exprt.getImportedPath()
88+
)
89+
or
8490
exists(ImportNamespaceSpecifier spec |
8591
node1 = spec.getImportDeclaration().getImportedPathExpr() and
8692
node2 = spec.getLocal()

0 commit comments

Comments
 (0)