mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Update javascript/ql/src/Expressions/MissingAwait.qhelp
Co-Authored-By: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<overview>
|
||||
<p>
|
||||
In JavaScript, <code>async</code> functions always return a promise object.
|
||||
To obtain the underlying value of the promise, the <code>await</code> operator or a call to <code>then</code> should be used.
|
||||
To obtain the underlying value of the promise, use the <code>await</code> operator or call the <code>then</code> method.
|
||||
Attempting to use a promise object instead of its underlying value can lead to unexpected behavior.
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user