-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
util: use Object.create(null) for dictionary object #3831
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.