Skip to content
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

net: named anonymous functions #21062

Closed

Conversation

ErnestoSalazar
Copy link
Contributor

Named anonymous functions #8913

  • [ x] make -j4 test (UNIX), or vcbuild test (Windows) passes
  • [x ] commit message follows [commit guidelines]

@nodejs-github-bot nodejs-github-bot added the net Issues and PRs related to the net subsystem. label May 31, 2018
@@ -338,7 +338,7 @@ function shutdownSocket(self, callback) {

// the user has called .end(), and all the bytes have been
// sent out to the other side.
Socket.prototype._final = function(cb) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ErnestoSalazar Congrats on your first PR in Node.js!
However, everything assigned to prototype should be good (comment) and not required to be named.

Copy link
Contributor Author

@ErnestoSalazar ErnestoSalazar May 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trivikr So, i see that other files also follows that same convention like https.js, thanks for your fast reply :D

@Trott
Copy link
Member

Trott commented Jun 1, 2018

Hi again, @ErnestoSalazar! I think there's nothing to be done on net.js for naming anonymous functions at this point. I'm going to close this, but comment or re-open if I'm mistaken! And thanks for the pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
net Issues and PRs related to the net subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants