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 9417fd0 commit 698bffaCopy full SHA for 698bffa
lib/internal/main/worker_thread.js
@@ -5,6 +5,7 @@
5
6
const {
7
ArrayPrototypeConcat,
8
+ ArrayPrototypeForEach,
9
ArrayPrototypeSplice,
10
ObjectDefineProperty,
11
PromisePrototypeCatch,
@@ -181,8 +182,9 @@ port.on('message', (message) => {
181
182
}
183
} else if (message.type === STDIO_PAYLOAD) {
184
const { stream, chunks } = message;
- for (const { chunk, encoding } of chunks)
185
+ ArrayPrototypeForEach(chunks, ({ chunk, encoding }) => {
186
process[stream].push(chunk, encoding);
187
+ });
188
} else {
189
assert(
190
message.type === STDIO_WANTS_MORE_DATA,
0 commit comments