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

Member predicate DataFlow::FunctionNode::getReceiver

Gets the dataflow node holding the value of the receiver passed to the given function.

Has no result for arrow functions, as they ignore the receiver argument.

To get the data flow node for this in an arrow function, consider using getThisBinder().getReceiver().

ThisNode getReceiver()