Skip to content

Commit d0c16f4

Browse files
radsimutargos
authored andcommitted
stream: named anonymous functions in _stream_readable.js
PR-URL: #21750 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent c45623a commit d0c16f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/_stream_readable.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ Readable.prototype.pipe = function(dest, pipeOpts) {
721721
};
722722

723723
function pipeOnDrain(src) {
724-
return function() {
724+
return function pipeOnDrainFunctionResult() {
725725
var state = src._readableState;
726726
debug('pipeOnDrain', state.awaitDrain);
727727
if (state.awaitDrain)
@@ -951,8 +951,8 @@ Readable.prototype.wrap = function(stream) {
951951
// important when wrapping filters and duplexes.
952952
for (var i in stream) {
953953
if (this[i] === undefined && typeof stream[i] === 'function') {
954-
this[i] = function(method) {
955-
return function() {
954+
this[i] = function methodWrap(method) {
955+
return function methodWrapReturnFunction() {
956956
return stream[method].apply(stream, arguments);
957957
};
958958
}(i);

0 commit comments

Comments
 (0)