Skip to content

Use Uint8Array.fromBase64 instead of atob #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Constellation
Copy link
Member

ECMAScript now has base64 -> Uint8Array conversion function in the standard. Let's just use it instead of relying on DOM's atob.

ECMAScript now has base64 -> Uint8Array conversion function in the
standard. Let's just use it instead of relying on DOM's atob.
Copy link

netlify bot commented Jun 5, 2025

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit 856305a
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/6840e7da4b40180008618d55
😎 Deploy Preview https://deploy-preview-77--webkit-jetstream-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@danleh
Copy link
Contributor

danleh commented Jul 1, 2025

As of 2025-07-01 Uint8Array.fromBase64 is still behind a flag in V8 (--js-base-64, see this test or the flag definitions here).

It is currently staged, and expected to become available quite soon, see https://crbug.com/42204568:

we will turn the flag on by default sometime next week on Chrome M140 . That means it will be available in Canary very soon, on Aug 6th in Beta and on Aug 27th in Stable.

So the failing v8 build should be fixed around that time, then we can merge it from my side. (Not sure about SpiderMonkey, how's availability there?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants