We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d59df2 commit b1f9db9Copy full SHA for b1f9db9
javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll
@@ -121,6 +121,12 @@ module DataFlow {
121
/** Gets a function value that may reach this node. */
122
FunctionNode getAFunctionValue() {
123
result.getAstNode() = analyze().getAValue().(AbstractCallable).getFunction()
124
+ or
125
+ exists(string name |
126
+ GlobalAccessPath::isAssignedInUniqueFile(name) and
127
+ GlobalAccessPath::fromRhs(result) = name and
128
+ GlobalAccessPath::fromReference(this) = name
129
+ )
130
}
131
132
/**
0 commit comments