| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ada7624 commit d19316d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -113,12 +113,11 @@ function Console(options /* or: stdout, stderr, ignoreErrors = true */) { | |||
| 113 | 113 | ||
| 114 | 114 | // Bind the prototype functions to this Console instance | |
| 115 | 115 | const keys = ObjectKeys(Console.prototype); | |
| 116 | - for (var v = 0; v < keys.length; v++) { | ||
| 117 | - var k = keys[v]; | ||
| 116 | + for (const key of keys) { | ||
| 118 | 117 | // We have to bind the methods grabbed from the instance instead of from | |
| 119 | 118 | // the prototype so that users extending the Console can override them | |
| 120 | 119 | // from the prototype chain of the subclass. | |
| 121 | - this[k] = this[k].bind(this); | ||
| 120 | + this[key] = this[key].bind(this); | ||
| 122 | 121 | } | |
| 123 | 122 | ||
| 124 | 123 | this[kBindStreamsEager](stdout, stderr); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments