E0069: cannot declare 'await' inside async function
In non-strict mode, a variable can be named await
. In strict mode and inside
async
functions, it is a syntax error to use await
as a variable name:
To fix this error, complete the variable declaration preceeding await
:
Alternatively, rename the variable to something other than await
:
Introduced in quick-lint-js version 0.2.0.
Documentation for other errors