diff options
author | MaleDong <maledong_github@outlook.com> | 2019-01-20 18:41:25 +0800 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-02-08 14:55:01 +0100 |
commit | 3a4521a4a2af30bac7f67b5a02b4433a51e9d169 (patch) | |
tree | cd7349d37e8950af6ff707dbb8f5366d24526424 /lib | |
parent | f265225c19ddd9b63472d5ddcdc9f6ff8edae866 (diff) | |
download | android-node-v8-3a4521a4a2af30bac7f67b5a02b4433a51e9d169.tar.gz android-node-v8-3a4521a4a2af30bac7f67b5a02b4433a51e9d169.tar.bz2 android-node-v8-3a4521a4a2af30bac7f67b5a02b4433a51e9d169.zip |
lib: remove dollar symbol for private function
Just remove '$' because this isn't a programming language like Python.
PR-URL: https://github.com/nodejs/node/pull/25590
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/events.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/events.js b/lib/events.js index fab8652ebf..2d7ae8945f 100644 --- a/lib/events.js +++ b/lib/events.js @@ -93,14 +93,14 @@ EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { return this; }; -function $getMaxListeners(that) { +function _getMaxListeners(that) { if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners; return that._maxListeners; } EventEmitter.prototype.getMaxListeners = function getMaxListeners() { - return $getMaxListeners(this); + return _getMaxListeners(this); }; // Returns the length and line number of the first sequence of `a` that fully @@ -247,7 +247,7 @@ function _addListener(target, type, listener, prepend) { } // Check for listener leak - m = $getMaxListeners(target); + m = _getMaxListeners(target); if (m > 0 && existing.length > m && !existing.warned) { existing.warned = true; // No error code for this since it is a Warning |