mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
http: explain the unused argument in IncomingMessage._read
PR-URL: https://github.com/nodejs/node/pull/37275 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
8c41bc953e
commit
926bb4fd17
1 file changed
+4
-1
@@ -100,7 +100,10 @@ IncomingMessage.prototype.setTimeout = function setTimeout(msecs, callback) {
|
||||
return this;
|
||||
};
|
||||
|
||||
|
||||
// Argument n cannot be factored out due to the overhead of
|
||||
// argument adaptor frame creation inside V8 in case that number of actual
|
||||
// arguments is different from expected arguments.
|
||||
// Ref: https://bugs.chromium.org/p/v8/issues/detail?id=10201
|
||||
IncomingMessage.prototype._read = function _read(n) {
|
||||
if (!this._consuming) {
|
||||
this._readableState.readingMore = false;
|
||||
|
||||
Reference in new issue
Block a user