Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Replace faux base64 module with functions btoa and atob #8

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

take-five
Copy link
Member

Browsers already have built-in functions btoa and atob:
https://developer.mozilla.org/en-US/docs/Glossary/Base64

Goja, on the other hand, doesn't implement these functions:
dop251/goja#541

Providing these functions instead of a faux module IMO, would be less
confusing and more in line with a "normal" JavaScript.

Browsers already have built-in functions `btoa` and `atob`:
https://developer.mozilla.org/en-US/docs/Glossary/Base64

Goja, on the other hand, doesn't implement these functions:
dop251/goja#541

Providing these functions instead of a faux module IMO, would be less
confusing and more in line with a "normal" JavaScript.
@take-five take-five requested a review from a team as a code owner June 23, 2024 10:18
@take-five take-five merged commit 9576b0e into master Jun 23, 2024
9 checks passed
@take-five take-five deleted the base64-fns branch June 23, 2024 10:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant