Base64 rewrite btoa and atob #619
Replies: 0 comments 2 replies
-
I have created an issue related to this one. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rumyra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a question regarding a rewrite section of btoa and atob
https://developer.mozilla.org/en-US/docs/Glossary/Base64#solution_2_%E2%80%93_rewriting_atob_and_btoa_using_typedarrays_and_utf-8
In the code section above (nside a function to convert binary string to UTF-8 (strToUTF8Arr)) charCodeAt return value between (0 and 65535) as of (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt). Should it be using codePointAt?
Beta Was this translation helpful? Give feedback.
All reactions