inspect-js / inspect-js/is-async-function
False positives for any function named "async" in classes or object literals
Open
- Dominant language
- JavaScript
- Stars
- 18
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
`isAsyncFunction` will return `true` for both `(class { async () {} }).prototype.async` and `{ async () {} }.async`. The cause is that keywords are allowed to be used as function/getter/setter names in classes and object literals, which the module `is-async-function` does not take into account.
Contributor guide
Assessment
This issue has not been assessed yet.