| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, but be prepared to rebase if it becomes necessary :)
Sorry, something went wrong.
|
The commit message exceeds the 50 character maximum though. It would be nice if this could be fixed before landing. |
Sorry, something went wrong.
|
@BridgeAR I've just shortened the commit message : ) |
Sorry, something went wrong.
Seems reasonable to me. |
Sorry, something went wrong.
There was a problem hiding this comment.
I suppose you can add _checkIsHttpToken: checkIsHttpToken too here, which would get rid of the only reference to common in the file other than this one. Also would you mind sorting these in alphabetical order?
Sorry, something went wrong.
There was a problem hiding this comment.
Ditto, but with _checkInvalidHeaderChar instead.
Sorry, something went wrong.
There was a problem hiding this comment.
This can be refactored as well.
Sorry, something went wrong.
|
Pushed commit to address comments. |
Sorry, something went wrong.
This change is to unify the declaration for constants into using destructuring on the top-level-module scope, reducing some redundant code.
Sorry, something went wrong.
This change is to unify the declaration for constants into using destructuring on the top-level-module scope, reducing some redundant code. PR-URL: #16063 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This change is to unify the declaration for constants into using destructuring on the top-level-module scope, reducing some redundant code. PR-URL: nodejs/node#16063 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
|
Does this change offer any performance improvements? These kind of large changes are going to create backporting conflicts that will be hard to manage for LTS With that being said this does not land cleanly on 8.x. Would someone be willing to manually backport |
Sorry, something went wrong.
|
@MylesBorins just submitted backport PR: #16494. The main conflicts that arose had to do with the semver-major commits around internal/errors like this one. Just FYI. |
Sorry, something went wrong.
This change is to unify the declaration for constants into using destructuring on the top-level-module scope, reducing some redundant code. PR-URL: #16063 Backport-PR-URL: #16494 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This change is to unify the declaration for constants into using destructuring on the top-level-module scope, reducing some redundant code. PR-URL: #16063 Backport-PR-URL: #16494 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
|
I'm not landing this on v6.x But want to once again urge collaborators that would should consider holding off on larger changes like this until v6.x goes into maintenance, this has the potential to cause a bunch of conflicts |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This change is to unify the declaration for constants into using destructuring on the top-level-module scope, reducing some redundant code.
By the way, what about adding "prefer-destructuring" into the .eslintrc ?
Checklist
Affected core subsystem(s)
lib