Skip to content

Commit e4844bf

Browse files
committed
JS: Fix deprecated API usage
1 parent ad10414 commit e4844bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

javascript/ql/src/definitions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ predicate importLookup(ASTNode path, Module target, string kind) {
7878
or
7979
exists(ReExportDeclaration red |
8080
path = red.getImportedPath() and
81-
target = red.getImportedModule()
81+
target = red.getReExportedModule()
8282
)
8383
)
8484
}

javascript/ql/src/semmle/javascript/dataflow/internal/InterModuleTypeInference.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private predicate mayDynamicallyComputeExports(Module m) {
6565
or
6666
// `m` re-exports all exports of some other module that dynamically computes its exports
6767
exists(BulkReExportDeclaration rexp | rexp = m.(ES2015Module).getAnExport() |
68-
mayDynamicallyComputeExports(rexp.getImportedModule())
68+
mayDynamicallyComputeExports(rexp.getReExportedModule())
6969
)
7070
}
7171

@@ -79,7 +79,7 @@ private predicate relevantExport(ES2015Module m, string x) {
7979
)
8080
or
8181
exists(ReExportDeclaration rexp, string y |
82-
rexp.getImportedModule() = m and
82+
rexp.getReExportedModule() = m and
8383
reExportsAs(rexp, x, y)
8484
)
8585
}
@@ -110,9 +110,9 @@ private predicate incompleteExport(ES2015Module m, string y) {
110110
mayDependOnLookupPath(rexp.getImportedPath().getStringValue())
111111
or
112112
// unresolvable path
113-
not exists(rexp.getImportedModule())
113+
not exists(rexp.getReExportedModule())
114114
or
115-
exists(Module n | n = rexp.getImportedModule() |
115+
exists(Module n | n = rexp.getReExportedModule() |
116116
// re-export from CommonJS/AMD
117117
mayDynamicallyComputeExports(n)
118118
or

0 commit comments

Comments
 (0)