-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
util: use Object.create(null) for dictionary object #3831
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Fixes #3788 `arrayToHash()` needs to use `Object.create(null)` for its dictionary object.
Given the LGTM's in the prior PR, will get this landed. |
Landed in 9d0396c |
This should probably be semver-major? |
@nodejs/ctc ... any thoughts on the semver-iness of this change? |
This is a grey area. I would consider it a bug fix, but technically someone could be depending on the brackets described in #3788. |
I'd say bug fix as well. |
Given the nature of the change and the possibility that this could break someone, I'm not going to pull this into v4 at all. |
Fixes #3788
arrayToHash()
needs to useObject.create(null)
for its dictionary object.