CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.0.3-dev (changelog, source)
Search

Predicate CachedSteps::captures

Holds if f captures the given variable in cap.

Import path

import semmle.javascript.dataflow.internal.FlowSteps
predicate captures(Function f, LocalVariable variable, SsaVariableCapture cap)