Home / Vulnerability Database / JavaScript : Incorrect usage of Promise constructor
JavaScript
JavaScript : 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.
References
LOW
DerScanner Severity Score
Do you want to fix JavaScript : Incorrect usage of Promise constructor in your application?
See also
JavaScript
JavaScript : Null salt
JavaScript
JavaScript : Empty encryption key
JavaScript
