You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often, I accidentally type 'await' instead of 'async' for my async arrow functions:
functiong(){f(await()=>{awaitx;});}
quick-lint-js reports errors for both await( and await x:
hello.js:3:5: error: 'await' is only allowed in async functions [E162]
hello.js:2:5: error: missing operator between expression and arrow function [E063]
hello.js:2:5: warning: use of undeclared variable: await [E057]
quick-lint-js should infer that async was intended, and provide a better error message (see below) and better error recovery (by assuming that the arrow function is async):
hello.js:2:5: error: 'await' does not create an async arrow function; use 'async' instead [E???]
The text was updated successfully, but these errors were encountered:
strager
added
the
for hire
Get paid for working on this task: https://quick-lint-js.com/hiring.html
label
May 10, 2021
Often, I accidentally type 'await' instead of 'async' for my async arrow functions:
quick-lint-js reports errors for both
await(
andawait x
:quick-lint-js should infer that
async
was intended, and provide a better error message (see below) and better error recovery (by assuming that the arrow function isasync
):The text was updated successfully, but these errors were encountered: