File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
javascript/ql/src/Expressions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55<overview >
66<p >
77In JavaScript, <code >async</code > functions always return a promise object.
8- To obtain the underlying value of the promise, the <code >await</code . operator or a call to <code>then</code . should be used.
9- Attempting to use a Promise object instead of its underlying value can lead to expected behavior.
8+ To obtain the underlying value of the promise, the <code >await</code > operator or a call to <code >then</code > should be used.
9+ Attempting to use a Promise object instead of its underlying value can lead to unexpected behavior.
1010</p >
1111
1212</overview >
1313<recommendation >
1414
1515<p >
16- Use the <code >await</code . operator to get the value contained in the promise.
17- Alternatively, call <code>then</code . on the promise and use the value passed to the callback.
16+ Use the <code >await</code > operator to get the value contained in the promise.
17+ Alternatively, call <code >then</code > on the promise and use the value passed to the callback.
1818</p >
1919
2020</recommendation >
You can’t perform that action at this time.
0 commit comments