mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
use getImportedModuleNode()
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
committed by
GitHub
parent
655b4a4d17
commit
138a16f0b3
@@ -81,7 +81,7 @@ private DataFlow::Node getAValueExportedByPackage() {
|
||||
// `module.exports.bar = function () { ... };`
|
||||
exists(DataFlow::PropRead read, Import imp |
|
||||
read = getAValueExportedByPackage() and
|
||||
read.getBase().getALocalSource().getEnclosingExpr() = imp and
|
||||
read.getBase().getALocalSource() = imp.getImportedModuleNode() and
|
||||
result = imp.getImportedModule().getAnExportedValue(read.getPropertyName())
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user