Overview
Comment: | Handle converting from buffers which cannot be converted to byte arrays |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | af11332c357cc0cc4cad5ab1d8d1d649499a1fab |
User & Date: | rkeene on 2019-06-12 19:38:24 |
Other Links: | manifest | tags |
Context
2019-06-12
| ||
19:39 | More work Duktape-based chrome-alike environment check-in: d73ab988ad user: rkeene tags: trunk | |
19:38 | Handle converting from buffers which cannot be converted to byte arrays check-in: af11332c35 user: rkeene tags: trunk | |
2019-06-09
| ||
18:35 | Minor cleanup check-in: e4e500972a user: rkeene tags: trunk | |
Changes
Modified build/chrome/ssh-agent.js from [393672b6c1] to [0d0e90bbfd].
89 89 while (bigInt) { 90 90 result.push(bigInt & 0xff); 91 91 bigInt = bigInt >> 8; 92 92 } 93 93 result.reverse(); 94 94 break; 95 95 case "object": 96 - result = Array.from(new Uint8Array(bigInt.toByteArray())); 96 + if (bigInt.toByteArray) { 97 + result = Array.from(new Uint8Array(bigInt.toByteArray())); 98 + } else { 99 + result = Array.from(bigInt); 100 + } 97 101 break; 98 102 } 99 103 100 104 result = cackeySSHAgentEncodeLV(result); 101 105 102 106 return(result); 103 107 }