Skip to content

Commit 0e0fb0e

Browse files
committed
JS: Remove API graph edge causing ambiguity
1 parent e441dd4 commit 0e0fb0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,7 @@ private predicate exports(string m, DataFlow::Node rhs) {
16211621
exists(Module mod | mod = importableModule(m) |
16221622
rhs = mod.(AmdModule).getDefine().getModuleExpr().flow()
16231623
or
1624+
not mod.(ES2015Module).hasBothNamedAndDefaultExports() and
16241625
exports(m, "default", rhs)
16251626
or
16261627
exists(ExportAssignDeclaration assgn | assgn.getTopLevel() = mod |

0 commit comments

Comments
 (0)