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

Member predicate Koa::RouteHandler::getAContextNode

Gets an expression that contains the “context” object of a route handler invocation.

Explanation: the context-object in Koa is typically this or ctx, given as the first and only argument to the route handler.

Node getAContextNode()