Open dckc opened 3 weeks ago
Docs say it returns ASCII:
https://github.com/endojs/endo/blob/f84566506accf11ee11ba05404a5b161c25708d3/packages/base64/atob.js#L5
not so:
test('really ascii?', t => { const data = new Uint8Array([0x6e, 0xf1]); const encoded = encodeBase64(data); const actual = atob(encoded); const ascii = /^[\x20-\x7f]+$/; t.log(actual); t.regex(actual, ascii); });
Aye, this should be revised to “string where each character’s code point is the value of the corresponding byte in the range 0 to 255” or words to that effect.
https://developer.mozilla.org/en-US/docs/Glossary/Base64
Docs say it returns ASCII:
https://github.com/endojs/endo/blob/f84566506accf11ee11ba05404a5b161c25708d3/packages/base64/atob.js#L5
not so: