CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.9.1 (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)