mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Update javascript/ql/lib/semmle/javascript/dataflow/internal/InterProceduralTypeInference.qll
Fix multiple declare may mismatch issue Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
@@ -191,9 +191,9 @@ private VarAccess getOnlyAccess(FunctionDeclStmt fn, LocalVariable v) {
|
||||
}
|
||||
|
||||
private VarAccess getOnlyAccessToFunctionExpr(FunctionExpr fn, LocalVariable v) {
|
||||
exists( DeclStmt st |
|
||||
fn = st.(DeclStmt).getADecl().getInit() and
|
||||
v = st.(DeclStmt).getADecl().getBindingPattern().getVariable() and
|
||||
exists(VariableDeclarator decl |
|
||||
fn = decl.getInit() and
|
||||
v = decl.getBindingPattern().getVariable() and
|
||||
result = unique(VarAccess acc | acc = v.getAnAccess())
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user