Skip to content

Commit

Permalink
Update lib/internal/child_process/serialization.js
Browse files Browse the repository at this point in the history
Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
MGorkov and lpinca authored Dec 13, 2024
1 parent 0a89f5e commit a7ef03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/child_process/serialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const advanced = {
*parseChannelMessages(channel, readData) {
if (readData.length === 0) return;

if (channel[kMessageBuffer].length && channel[kMessageBuffer][0].length < 4) {
if (channel[kMessageBufferSize] && channel[kMessageBuffer][0].length < 4) {
// Message length split into two buffers, so let's concatenate it.
channel[kMessageBuffer][0] = Buffer.concat([channel[kMessageBuffer][0], readData]);
} else {
Expand Down

0 comments on commit a7ef03a

Please sign in to comment.