| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7395de0 commit 7f69973
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,8 +42,10 @@ ObjectSetPrototypeOf(Duplex.prototype, Readable.prototype); | |||
| 42 | 42 | ObjectSetPrototypeOf(Duplex, Readable); | |
| 43 | 43 | ||
| 44 | 44 | { | |
| 45 | + const keys = ObjectKeys(Writable.prototype); | ||
| 45 | 46 | // Allow the keys array to be GC'ed. | |
| 46 | - for (const method of ObjectKeys(Writable.prototype)) { | ||
| 47 | + for (let i = 0; i < keys.length; i++) { | ||
| 48 | + const method = keys[i]; | ||
| 47 | 49 | if (!Duplex.prototype[method]) | |
| 48 | 50 | Duplex.prototype[method] = Writable.prototype[method]; | |
| 49 | 51 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments