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

Predicate isEarlyAbortGuard

Holds if e effectively guards access to action by returning or throwing early.

Example: if (e) return; action(x).

Import path

import semmle.javascript.security.dataflow.ConditionalBypassQuery
predicate isEarlyAbortGuard(PathNode e, SensitiveAction action)