Skip to content
Prev Previous commit
Next Next commit
Update lib/stream.js
  • Loading branch information
ronag authored Dec 29, 2021
commit 7e617c26a37f8d4d69296e9b8dbaf61da6ad24f1
2 changes: 1 addition & 1 deletion lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Stream.Readable = require('internal/streams/readable');
for (const key of ObjectKeys(operators)) {
Comment thread
ronag marked this conversation as resolved.
const op = operators[key];
Stream.Readable.prototype[key] = function(...args) {
return Stream.Readable.from(ReflectApply(op, this, arguments));
return Stream.Readable.from(ReflectApply(op, this, args));
};
}
Stream.Writable = require('internal/streams/writable');
Expand Down