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.
-
codeql.github.comhttps://codeql.github.com › … › Promises.qll › module.PromisesPromises
More about codeql.github.com
… 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 …
-
codeql.github.comhttps://codeql.github.com › codeql-query-help › javascript › js-missing-awaitMissing await — CodeQL query help documentation
More about codeql.github.com
… 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 …
-
codeql.github.comhttps://codeql.github.com › … › Promises.qll › type.Promises$PromiseDefinitionPromiseDefinition
More about codeql.github.com
… 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 …
-
codeql.github.comhttps://codeql.github.com › … › Promises.qll › type.Promises$AggregateES2015P…AggregateES2015PromiseDefinition
More about codeql.github.com
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 …
-
codeql.github.comhttps://codeql.github.com › … › Promises.qll › module.Promises$BluebirdBluebird
More about codeql.github.com
… 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 …
-
codeql.github.comhttps://codeql.github.com › … › Promises.qll › type.Promises$Bluebird$Aggrega…AggregateBluebirdPromiseDefinition
More about codeql.github.com
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 …
-
codeql.github.comhttps://codeql.github.com › … › codeql-changelog › codeql-cli-2.26.3CodeQL 2.26.3 (2026-08-12) — CodeQL
More about codeql.github.com
… 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 …
-
codeql.github.comhttps://codeql.github.com › codeql-query-help › javascript › js-server-crashServer crash — CodeQL query help documentation
More about codeql.github.com
… 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 …
-
codeql.github.comhttps://codeql.github.com › … › codeql-changelog › codeql-cli-2.14.1CodeQL 2.14.1 (2023-07-27) — CodeQL
More about codeql.github.com
… 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 …
-
codeql.github.comhttps://codeql.github.com › docs › codeql-language-guides › codeql-library-for-typescriptCodeQL library for TypeScript — CodeQL
More about codeql.github.com
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 …
Search for “Promises site:codeql.github.com” on Google, or add !ddg, !w and other shortcuts to any search.