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

Module DynamicPropertyAccess

Provides classes for working with dynamic property accesses.

Import path

import semmle.javascript.DynamicPropertyAccess

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

dynamicPropReadStep

Holds if output is the result of base[key], either directly or through one or more function calls, ignoring reads that can’t access the prototype chain.

getAnEnumeratedArrayElement

Gets a node that refers to an element of array, likely obtained as a result of enumerating the elements of the array.

Classes

DynamicPropRead

A dynamic property access that is not obviously an array access.

EnumeratedPropName

A data flow node that refers to the name of a property obtained by enumerating the properties of some object.