url: replace "magic" numbers by constants#19035
Conversation
MylesBorins
left a comment
There was a problem hiding this comment.
rubber stamp LGTM if CI passes
cjihrig
left a comment
There was a problem hiding this comment.
These changes LGTM, but it seems like there are still quite a few magic numbers in lib/url.js. For example, https://github.com/daynin/node/blob/32c3cb1c145a25efffb2f353d4db314b7952f6ca/lib/url.js#L276-L291
32c3cb1 to
46d8af5
Compare
|
@cjihrig I replaced remain numbers |
46d8af5 to
ccc8b07
Compare
apapirovski
left a comment
There was a problem hiding this comment.
LGTM but there's an incorrect comment that has to be fixed before landing.
lib/internal/constants.js
Outdated
There was a problem hiding this comment.
This should be commented as \uFEFF, not \u00A0.
ccc8b07 to
44d723b
Compare
|
/cc @nodejs/collaborators Hello! Run CI for this PR, please |
|
Landed in 2f74326 🎉 |
PR-URL: nodejs#19035 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]>
PR-URL: #19035 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]>
PR-URL: #19035 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]>
PR-URL: nodejs#19035 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]>
|
should this be backported to 8.x? If so, a separate backport PR is needed. |
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
url