-
Notifications
You must be signed in to change notification settings - Fork 29.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
http: remove unnecessary util._extend() #634
Conversation
LGTM
so no need to use |
The methods array is used inside the http parser guts. That's the reason it's cloned, because accidentally (or intentionally) modifying it is bound to break things. I would just leave it as it is. |
But sorting makes a clone... |
Nuh-uh. :-)
|
Waaaaaaa is it because no sorting took place? |
No, |
@charmander agreed. updated |
PR-URL: #634 Reviewed-BY: Nicu Micleușanu <micnic90@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Landed in 3e67d7e |
👍 |
on a mission to remove all instances of
util._extend()
and I found this. AFAIK, this is unnecessary. 6100228#diff-1c0f1c434b17b7f8795d44a51a14320aR31/cc @bnoordhuis