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
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.
The text was updated successfully, but these errors were encountered:
Of course it's allowed. I wouldn't have been able to test isAsyncFunction on it if it were invalid. I am just reporting this false positive to this project as a courtesy so that it may be fixed.
isAsyncFunction
will returntrue
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 moduleis-async-function
does not take into account.The text was updated successfully, but these errors were encountered: