inspect-js / inspect-js/is-async-function

False positives for any function named "async" in classes or object literals

Open
#30 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.