Avoid stdout buffer allocation (#967)

This commit is contained in:
Justin Ridgewell
2021-03-13 16:11:09 -05:00
committed by GitHub
parent afa91d7dd3
commit dad0925102

View File

@@ -434,7 +434,7 @@ export function createChannel(streamIn: StreamIn): StreamOut {
break;
}
offset += 4;
handleIncomingPacket(stdout.slice(offset, offset + length));
handleIncomingPacket(stdout.subarray(offset, offset + length));
offset += length;
}
if (offset > 0) {