-
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
module: rename anonymous functions #13849
Conversation
@@ -635,7 +635,7 @@ Module._initPaths = function() { | |||
|
|||
var nodePath = process.env['NODE_PATH']; | |||
if (nodePath) { | |||
paths = nodePath.split(path.delimiter).filter(function(path) { | |||
paths = nodePath.split(path.delimiter).filter(function pathsFilterCallback(path) { |
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.
I think this is the only one that's necessary. The rest should show up as expected in stack traces, etc. because they're attached to an object (prototype or otherwise).
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.
I agree, this is the only one that is needed. Can you please restore the other ones?
Nice work. Please feel free to also give us any feedback about the onboarding process today. Note that JavaScript functions are automatically named when you assign them since ES2015. LGTM on the change @mcollina approved, please amend the rest. |
I think this PR could be closed due to #14297 (review). |
There's one function in |
Closing due to long inactivity. |
@ranstyr please feel free to reopen if you want to follow up on this! |
This is my first contribution!
#GoodnessSquad
#8913
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
#GoodnessSquad