We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7e900 commit 99c5abeCopy full SHA for 99c5abe
src/encoding/enc-latin1.js
@@ -27,13 +27,13 @@ export const Latin1 = {
27
} = wordArray;
28
29
// Convert
30
- const latin1Chars = [];
+ let latin1Chars = '';
31
for (let i = 0; i < sigBytes; i++) {
32
- const bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
33
- latin1Chars.push(String.fromCharCode(bite));
+ const byte = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ latin1Chars += String.fromCharCode(byte);
34
}
35
36
- return latin1Chars.join('');
+ return latin1Chars;
37
},
38
39
/**
0 commit comments