FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

v4.x backport for #9113: test,lib,benchmark: match function names by Trott · Pull Request #10398 · nodejs/node · GitHub

/ node Public

v4.x backport for #9113: test,lib,benchmark: match function names - #10398

Closed
Trott wants to merge 1 commit into
nodejs:v4.x-stagingfrom
Trott:backport-9113
Closed

v4.x backport for #9113: test,lib,benchmark: match function names#10398
Trott wants to merge 1 commit into
nodejs:v4.x-stagingfrom
Trott:backport-9113

Conversation

Trott commented Dec 21, 2016

Copy link
Copy Markdown
Member

In most cases, named functions match the variable or property to which
they are being assigned. That also seems to be the practice in a series
of PRs currently being evaluated that name currently-anonymous
functions.

This change applies that rule to instances in the code base that don't
comply with that practice.

This will be enforceable with a lint rule once we upgrade to ESLint
3.8.0.

PR-URL: #9113
Reviewed-By: James M Snell jasnell@gmail.com
Reviewed-By: Franziska Hinkelmann franziska.hinkelmann@gmail.com

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

test lib benchmark

Description of change

In most cases, named functions match the variable or property to which
they are being assigned. That also seems to be the practice in a series
of PRs currently being evaluated that name currently-anonymous
functions.

This change applies that rule to instances in the code base that don't
comply with that practice.

This will be enforceable with a lint rule once we upgrade to ESLint
3.8.0.

PR-URL: nodejs#9113
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. v4.x labels Dec 21, 2016

Copy link
Copy Markdown
Contributor

Trott commented Jan 4, 2017

Copy link
Copy Markdown
Member Author

Landed in 7745d30

Trott closed this Jan 4, 2017
Trott deleted the backport-9113 branch January 13, 2022 22:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib / src Issues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL