-
-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v5] assert.isFunction()
fails with async function
#1564
Comments
Wow! Weird that we haven't hit this before. I don't even see a test for this so it makes sense we didn't catch this in the upgrade. I've created a failing test on a local branch and I'll see if I can make a fix today. I'll keep you posted. |
@koddsson its most likely because an async function's tag is presumably the library we used to use just treated them as one edit: here you go: |
Yup! We refactored I put together a draft PR here and wrote down some thoughts: #1566 |
There is a similar issue with |
The function
assert.isFunction
is failing on AsyncFunction on v5.0.0, while on v4.3.10 it was workingA simple scenario is the one below:
For now I changed my tests to use the JS builtin
typeof
, like:The text was updated successfully, but these errors were encountered: