We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d53e79 commit 05a16e7Copy full SHA for 05a16e7
lib/internal/main/worker_thread.js
@@ -5,6 +5,7 @@
5
6
const {
7
ArrayPrototypeConcat,
8
+ ArrayPrototypeForEach,
9
ArrayPrototypeSplice,
10
ObjectDefineProperty,
11
PromisePrototypeCatch,
@@ -178,8 +179,9 @@ port.on('message', (message) => {
178
179
}
180
} else if (message.type === STDIO_PAYLOAD) {
181
const { stream, chunks } = message;
- for (const { chunk, encoding } of chunks)
182
+ ArrayPrototypeForEach(chunks, ({ chunk, encoding }) => {
183
process[stream].push(chunk, encoding);
184
+ });
185
} else {
186
assert(
187
message.type === STDIO_WANTS_MORE_DATA,
0 commit comments