We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8befb03 commit ff49aaaCopy full SHA for ff49aaa
javascript/ql/src/semmle/javascript/dataflow/internal/FlowSteps.qll
@@ -115,7 +115,8 @@ private module CachedSteps {
115
cached
116
predicate captures(Function f, LocalVariable variable, SsaVariableCapture cap) {
117
variable = cap.getSourceVariable() and
118
- f = cap.getContainer()
+ f = cap.getContainer() and
119
+ not f = variable.getDeclaringContainer()
120
}
121
122
/**
0 commit comments