We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24da8ae commit e2247c8Copy full SHA for e2247c8
lib/internal/child_process/serialization.js
@@ -71,7 +71,12 @@ const advanced = {
71
while (messageBufferHead.length >= 4) {
72
// We call `readUInt32BE` manually here, because this is faster than first converting
73
// it to a buffer and using `readUInt32BE` on that.
74
- const fullMessageSize = ReflectApply(readUInt32BE, messageBufferHead, [0]) + 4;
+ const fullMessageSize = (
75
+ messageBufferHead[0] << 24 |
76
+ messageBufferHead[1] << 16 |
77
+ messageBufferHead[2] << 8 |
78
+ messageBufferHead[3]
79
+ ) + 4;
80
81
if (channel[kMessageBufferSize] < fullMessageSize) break;
82
0 commit comments