Skip to content

Commit 7149ad8

Browse files
committed
JS: Also mark uses of the exports object as an export in PackageExports
1 parent cc83832 commit 7149ad8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

javascript/ql/lib/semmle/javascript/PackageExports.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,6 @@ private DataFlow::Node getAnExportFromModule(Module mod) {
167167
result = mod.getAnExportedValue(_)
168168
or
169169
result = mod.getABulkExportedNode()
170+
or
171+
result.analyze().getAValue() = TAbstractModuleObject(mod)
170172
}

0 commit comments

Comments
 (0)