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

Member predicate ThrowStmt::getTarget

Gets the target of this throw statement, which is the closest surrounding try statement in whose body the throw statement occurs. If there is no such try statement, the target defaults to the enclosing statement container.

AstNode getTarget()