Skip to content

12$: Warn on 'await function' #413

@strager

Description

@strager
await function foo() {
}

We should warn about the await. They probably meant async.

We shouldn't warn in these cases though:

await function foo() {
}();
await (function foo() {
});

Metadata

Metadata

Assignees

Labels

for hireGet paid for working on this task: https://quick-lint-js.com/hiring.html

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions