-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Bluebird.props for empty Map returns an Object #1338
Comments
I'm not sure I agree. |
@benjamingr I don't think it's about dealing with every case (empty Map only?) but not being predictable is what hurts the most. I'm ok with it if we add it to the docs:
Don't you think it seems highly inconvenient? The resolved value depends on the number of items inside a Map |
@benjamingr seems like odd behavior that You're totally right that passing it a map as a configuration is a nice bonus but feels like if Bluebird is going to include that functionality it should be consistent and predictable. |
👍 different return value types are strange |
What version of bluebird is the issue happening on?
v3.4.7
What platform and version?
v7.5.0
Darwin Alans-MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64
Did this issue happen with earlier version of bluebird?
Yes
Bluebird.props
should return an empty ES6Map
instead of a plain object{}
when called with an emptyMap
:The text was updated successfully, but these errors were encountered: