From d6a6bcdc47c0c0e31e24bba0e8e26ee0da5b7eb0 Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 17 Aug 2016 15:53:48 +0800 Subject: [PATCH] stream: remove unnecessary parameter Delete invalid parameter. Fixes: https://github.com/nodejs/node/issues/8153 PR-URL: https://github.com/nodejs/node/pull/12767 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: David Cai Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- lib/_stream_readable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 879e5ddb53fe40..7c5f17378292fd 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -717,7 +717,7 @@ Readable.prototype.on = function(ev, fn) { if (!state.reading) { process.nextTick(nReadingNextTick, this); } else if (state.length) { - emitReadable(this, state); + emitReadable(this); } } }