33 matching pages, found in 26 ms

Summary

The Promises site on codeql.github.com is a CodeQL library for JavaScript/TypeScript that models promise behavior and data-flow, including classes like PromiseDefinition and AggregateES2015PromiseDefinition 1. It supports analysis of promise creation, resolution, and handling, including for libraries like Bluebird 5. The library also includes queries for detecting issues like missing await, which can lead to unexpected behavior when using promise objects instead of their resolved values 2. Classes such as PromiseCreationCall and ResolvedPromiseDefinition help track promise lifecycle and resolution handlers 3.

Written by qwen3-vl-abliterated 8b on your GPU machine from 6 sources, Nov 20. It can be wrong: check the sources.

  1. codeql.github.comhttps://codeql.github.com › … › Promises.qll › module.Promises
    More about codeql.github.com
    Promises

    … that looks like a Promise. PromiseCreationCall A promise that is created and resolved with one or more value. PromiseDefinition A call to the Promise constructor, such as new Promise((resolve, reject) => { ... }) . ResolvedES2015PromiseDefinition …

    0 points
  2. codeql.github.comhttps://codeql.github.com › codeql-query-help › javascript › js-missing-await
    More about codeql.github.com
    Missing await — CodeQL query help documentation

    … functions always return a promise object. To obtain the underlying value of the promise, use the await operator or call the then method. Attempting to use a promise object instead of its …

    0 points
  3. codeql.github.comhttps://codeql.github.com › … › Promises.qll › type.Promises$PromiseDefinition
    More about codeql.github.com
    PromiseDefinition

    … A call to the Promise constructor, such as new Promise((resolve, reject) => { ... }) . This includes calls to the built-in Promise constructor as well as promise implementations from known libraries, such as bluebird …

    0 points
  4. codeql.github.comhttps://codeql.github.com › … › Promises.qll › type.Promises$AggregateES2015P…
    More about codeql.github.com
    AggregateES2015PromiseDefinition

    CodeQL library for JavaScript/TypeScript codeql/javascript-all 3.0.1 ( changelog , source ) Index Search Class AggregateES2015PromiseDefinition An aggregated promise produced either by Promise.all , Promise.race , or Promise.any . Import path import javascript Direct supertypes PromiseCreationCall …

    0 points
  5. codeql.github.comhttps://codeql.github.com › … › Promises.qll › module.Promises$Bluebird
    More about codeql.github.com
    Bluebird

    … javascript Classes AggregateBluebirdPromiseDefinition An aggregated promise produced either by Promise.all , Promise.race or Promise.map . BluebirdCoroutineDefinition An async function created using a call to bluebird.coroutine . BluebirdPromiseAllDefinition A promise created using Promise.all : ResolvedBluebidPromiseDefinition A resolved promise …

    0 points
  6. codeql.github.comhttps://codeql.github.com › … › Promises.qll › type.Promises$Bluebird$Aggrega…
    More about codeql.github.com
    AggregateBluebirdPromiseDefinition

    CodeQL library for JavaScript/TypeScript codeql/javascript-all 3.0.1 ( changelog , source ) Index Search Class Bluebird :: AggregateBluebirdPromiseDefinition An aggregated promise produced either by Promise.all , Promise.race or Promise.map . Import path import javascript Direct supertypes PromiseCreationCall …

    0 points
  7. codeql.github.comhttps://codeql.github.com › … › codeql-changelog › codeql-cli-2.26.3
    More about codeql.github.com
    CodeQL 2.26.3 (2026-08-12) — CodeQL

    … threat model now track promise-wrapped client response data into promise fulfillment values. This may improve results for queries such as js/xss when response data is consumed through .then(...) chains. The …

    0 points
  8. codeql.github.comhttps://codeql.github.com › codeql-query-help › javascript › js-server-crash
    More about codeql.github.com
    Server crash — CodeQL query help documentation

    … res ) => { try { await fs . promises . access ( rootDir ); save ( rootDir , req . query . path , req . body ); // GOOD exception is caught below res . status ( 200 ); res . end (); } catch ( e ) { res . status ( 500 ); res . end (); } }); References …

    0 points
  9. codeql.github.comhttps://codeql.github.com › … › codeql-changelog › codeql-cli-2.14.1
    More about codeql.github.com
    CodeQL 2.14.1 (2023-07-27) — CodeQL

    … JavaScript/TypeScript ¶ The fs/promises package is now recognised as an alias for require('fs').promises . The js/path-injection query can now track taint through calls to path.join() with a spread …

    0 points
  10. codeql.github.comhttps://codeql.github.com › docs › codeql-language-guides › codeql-library-for-typescript
    More about codeql.github.com
    CodeQL library for TypeScript — CodeQL

    CodeQL » CodeQL language guides » CodeQL for JavaScript and TypeScript » CodeQL library for TypeScript ¶ When you’re analyzing a TypeScript program, you can make use of the large collection of classes in the CodeQL …

    0 points

Search for “Promises site:codeql.github.com” on Google, or add !ddg, !w and other shortcuts to any search.