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

Predicate CachedSteps::returnStep

Holds if there is a flow step from pred to succ through:

  • returning a value from a function call (from the special FunctionReturnNode), or
  • throwing an exception out of a function call, or
  • the receiver flowing out of a constructor call.

Import path

import semmle.javascript.dataflow.internal.FlowSteps
predicate returnStep(Node pred, Node succ)