Skip to content
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

fix(wasm): support decoding data URL in Node < v16 (backport of #8622 for v2 branch) #8668

Merged
merged 1 commit into from Jun 20, 2022
Merged

fix(wasm): support decoding data URL in Node < v16 (backport of #8622 for v2 branch) #8668

merged 1 commit into from Jun 20, 2022

Commits on Jun 19, 2022

  1. fix(wasm): support decoding data URL in Node < v16

    Node < v16 do not provide a global `atob()` function for decoding base64
    strings, and must use `Buffer.from()` instead. Furthermore,
    `Buffer.from(str, 'base64').toString()` is much faster than `atob()` in
    Node. Thus, prefer to use `Buffer.from()` if possible.
    pastelmind authored and Yehyoung Kang committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    f1448ee View commit details
    Browse the repository at this point in the history