quick-lint / quick-lint-js

quick-lint-js finds bugs in JavaScript programs
https://quick-lint-js.com
GNU General Public License v3.0
1.54k stars 192 forks source link

feat: error on 'for await' in non-async function #1168

Closed dlarocque closed 9 months ago

dlarocque commented 9 months ago

Added diagnostic when a 'for await' statement is in a non-async function, since this statement can only be used in contexts where 'await' can be used.

closes #1137

dlarocque commented 9 months ago

@strager Do you know why the macOS AArch64 build is failing, or how I might be able to fix it? I don't see how my changes would cause the builds to fail, and I can't find any output from the failing checks.

strager commented 9 months ago

Do you know why the macOS AArch64 build is failing

Those jobs run on my machine in my home lab, and the machine was turned off. :upside_down_face: It should be fixed now.