async function call without an expected await prefix inside an async function.
Such call returns a Promise and control flow is continued immediately.
Example:
async function bar() { /* ... */ }
async function foo() {
bar(); // bad
}
After the quick-fix is applied, the await prefix is added:
async function bar() { /* ... */ }
async function foo() {
await bar(); // good
}
await in return statements.await when surrounding your code with try-catch.await helps V8 runtime to provide async stack traces.