CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.2-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)