E0071: cannot declare 'yield' inside generator function
In non-strict mode, a variable can be named yield
. In strict mode and inside
generator functions, it is a syntax error to use yield
as a variable name:
To fix this error, complete the variable declaration preceeding yield
:
Introduced in quick-lint-js version 0.2.0.