-
Notifications
You must be signed in to change notification settings - Fork 135
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
[node8] Support for container.build(async () => ..) #90
Comments
Good catch! Awilix does not include anything related to async, so I’m not entirely sure what you’re doing, but I’ll definitely make sure this works as expected. I’m away from my dev machine until tuesday though, so it won’t be earlier than that. 😀 |
For us, there was no good reason for that function to be |
Regardless, it should work, so I’ll make sure it does. 😄 |
@igrayson the fix has been published as v3.0.8, thanks for reporting! |
It looks like container.build() doesn't do the expected thing for (native) async functions, using Node 8.
Repro:
Expected result: no error thrown.
Actual result:
I looked at the internals briefly, and it looks like https://github.com/jeffijoe/awilix/blob/master/src/param-parser.ts needs to be updated to handle
toString()
'd async functions.The text was updated successfully, but these errors were encountered: