diff options
author | Rich Trott <rtrott@gmail.com> | 2016-10-15 15:02:43 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-10-19 22:20:27 -0700 |
commit | 68ba9aa0fb6693a1fb5dd114a3ddbe447517c0dd (patch) | |
tree | 9aa5e49fe6db669b58078dbbfcb2231b93e3b93d /lib/domain.js | |
parent | 4b65a65e75f48ff447cabd5500ce115fb5ad4c57 (diff) | |
download | node-new-68ba9aa0fb6693a1fb5dd114a3ddbe447517c0dd.tar.gz |
test,lib,benchmark: match function names
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: https://github.com/nodejs/node/pull/9113
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'lib/domain.js')
-rw-r--r-- | lib/domain.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/domain.js b/lib/domain.js index 355c09c6e9..c86af75c86 100644 --- a/lib/domain.js +++ b/lib/domain.js @@ -58,7 +58,7 @@ Domain.prototype._disposed = undefined; // Called by process._fatalException in case an error was thrown. -Domain.prototype._errorHandler = function errorHandler(er) { +Domain.prototype._errorHandler = function _errorHandler(er) { var caught = false; // ignore errors on disposed domains. |