-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
punycode: named anonymous functions #21761
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The punycode module is a legacy third-party vendored-in module that is currently deprecated and only used when ICU is not present or someone is specifically calling require('punycode')
. I don't believe we should be making any changes to this module, even if largely cosmetic.
@jasnell It looks like we use punycode 2.0.0 but 2.1.1 is the most recent. Would you be open to the idea that a non-breaking update to 2.1.1 is appropriate? (Trying to redirect @venetah to a different good first contribution. Although I wonder if there would be lint failures...but first thing's first. Is it even an option in your view?) |
I'm not opposed to updating version of the module, but any changes to the module itself should be done upstream |
FWIW, we did change four lines of the module in 2e568d9. But that can be floated again if necessary. (I would say it's not necessary. Simply don't land the change on v6.x and it should be fine, especially for something legacy/deprecated.) Looks like there are no lint errors either... EDIT: ...because punycode is in the eslintignore file... |
@venetah How would you feel about closing this PR and trying again with a punycode.js upgrade PR? I think you could do it this way (using UNIX-y commands, you will need to modify if you are on Windows):
(You can remove
/cc @trivikr |
@venetah I've opened a pull request for the punycode update. If this is something you were planning on doing, let me know and I'll close mine or at least marked it as blocked pending yours. |
punycode: named anonymous functions
Refs: #8913
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes