Skip to content

Commit fc6f49a

Browse files
antsmartiantrivikr
authored andcommitted
readline,zlib: named anonymous functions
PR-URL: #21792 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]>
1 parent 1f56c56 commit fc6f49a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/readline.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ Interface.prototype._ttyWrite = function(s, key) {
843843
if (this.listenerCount('SIGTSTP') > 0) {
844844
this.emit('SIGTSTP');
845845
} else {
846-
process.once('SIGCONT', (function(self) {
846+
process.once('SIGCONT', (function continueProcess(self) {
847847
return function() {
848848
// Don't raise events if stream has already been abandoned.
849849
if (!self.paused) {

lib/zlib.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ function processChunkSync(self, chunk, flushFlag) {
473473
var chunkSize = self._chunkSize;
474474

475475
var error;
476-
self.on('error', function(er) {
476+
self.on('error', function onError(er) {
477477
error = er;
478478
});
479479

@@ -691,11 +691,11 @@ inherits(Unzip, Zlib);
691691

692692
function createConvenienceMethod(ctor, sync) {
693693
if (sync) {
694-
return function(buffer, opts) {
694+
return function syncBufferWrapper(buffer, opts) {
695695
return zlibBufferSync(new ctor(opts), buffer);
696696
};
697697
} else {
698-
return function(buffer, opts, callback) {
698+
return function asyncBufferWrapper(buffer, opts, callback) {
699699
if (typeof opts === 'function') {
700700
callback = opts;
701701
opts = {};

0 commit comments

Comments
 (0)