Skip to content

Commit

Permalink
chore: Update codegen that slipped through.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh committed Jun 13, 2021
1 parent 95ed9f5 commit 2d1cbcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/grpc-js/google/protobuf/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ const btoa: (bin: string) => string =
globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64'));
function base64FromBytes(arr: Uint8Array): string {
const bin: string[] = [];
for (let i = 0; i < arr.byteLength; ++i) {
bin.push(String.fromCharCode(arr[i]));
for (const byte of arr) {
bin.push(String.fromCharCode(byte));
}
return btoa(bin.join(''));
}
Expand Down

0 comments on commit 2d1cbcb

Please sign in to comment.