| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6d53e79 commit 05a16e7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | 6 | const { | |
| 7 | 7 | ArrayPrototypeConcat, | |
| 8 | + ArrayPrototypeForEach, | ||
| 8 | 9 | ArrayPrototypeSplice, | |
| 9 | 10 | ObjectDefineProperty, | |
| 10 | 11 | PromisePrototypeCatch, | |
@@ -178,8 +179,9 @@ port.on('message', (message) => { | |||
| 178 | 179 | } | |
| 179 | 180 | } else if (message.type === STDIO_PAYLOAD) { | |
| 180 | 181 | const { stream, chunks } = message; | |
| 181 | - for (const { chunk, encoding } of chunks) | ||
| 182 | + ArrayPrototypeForEach(chunks, ({ chunk, encoding }) => { | ||
| 182 | 183 | process[stream].push(chunk, encoding); | |
| 184 | + }); | ||
| 183 | 185 | } else { | |
| 184 | 186 | assert( | |
| 185 | 187 | message.type === STDIO_WANTS_MORE_DATA, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments