We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7395de0 commit 7f69973Copy full SHA for 7f69973
lib/internal/streams/duplex.js
@@ -42,8 +42,10 @@ ObjectSetPrototypeOf(Duplex.prototype, Readable.prototype);
42
ObjectSetPrototypeOf(Duplex, Readable);
43
44
{
45
+ const keys = ObjectKeys(Writable.prototype);
46
// Allow the keys array to be GC'ed.
- for (const method of ObjectKeys(Writable.prototype)) {
47
+ for (let i = 0; i < keys.length; i++) {
48
+ const method = keys[i];
49
if (!Duplex.prototype[method])
50
Duplex.prototype[method] = Writable.prototype[method];
51
}
0 commit comments