diff --git a/lib/common.ts b/lib/common.ts index 485d008607f..71f32a7131e 100644 --- a/lib/common.ts +++ b/lib/common.ts @@ -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) {