JS: Remove API graph edge causing ambiguity

This commit is contained in:
Asger F
2024-01-16 14:29:09 +01:00
parent e441dd472b
commit 0e0fb0e52d

View File

@@ -1621,6 +1621,7 @@ private predicate exports(string m, DataFlow::Node rhs) {
exists(Module mod | mod = importableModule(m) |
rhs = mod.(AmdModule).getDefine().getModuleExpr().flow()
or
not mod.(ES2015Module).hasBothNamedAndDefaultExports() and
exports(m, "default", rhs)
or
exists(ExportAssignDeclaration assgn | assgn.getTopLevel() = mod |