Skip to content

Commit

Permalink
Avoid stdout buffer allocation (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell authored Mar 13, 2021
1 parent afa91d7 commit dad0925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dad0925

Please sign in to comment.