Home / Vulnerability Database / TypeScript : Incorrect usage of Promise constructor
TypeScript

TypeScript : Incorrect usage of Promise constructor

Overview

The new Promise constructor takes as its argument an executing function that has the resolve and reject parameters that can be used to control the state of the created constructor.

If the executing function is asynchronous and generates an error, the error will be lost and the new Promise constructors will not be rejected. This can make it difficult to debug and fix some errors.

LOW

DerScanner Severity Score

Do you want to fix TypeScript : Incorrect usage of Promise constructor in your application?

See also

TypeScript

TypeScript : Unsafe Azure access control

TypeScript

TypeScript : Debug code

TypeScript

TypeScript : XSS protection is disabled