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

Module Promises

Common predicates shared between type-tracking and data-flow for promises.

Import path

import javascript

Predicates

errorProp

Gets the pseudo-field used to describe rejected values in a promise.

valueProp

Gets the pseudo-field used to describe resolved values in a promise.

Classes

PromiseProps

A property set containing the pseudo-properites of a promise object.

Aliases

promiseConstructorRef

Gets a reference to the Promise object. Either from the standard library, a polyfill import, or a polyfill that defines the global Promise variable.