CodeQL library for JavaScript
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()