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

Predicate DataFlow::reflectiveCallNode

Gets a data flow node representing the underlying call performed by the given call to Function.prototype.call or Function.prototype.apply.

For example, for an expression fn.call(x, y), this gets a call node with fn as the callee, x as the receiver, and y as the first argument.

Import path

import javascript
InvokeNode reflectiveCallNode(InvokeExpr expr)