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 inlined WASM in Node < v16 (fix #8620) #8622

Merged
merged 1 commit into from Jun 17, 2022
Merged

fix(wasm): support inlined WASM in Node < v16 (fix #8620) #8622

merged 1 commit into from Jun 17, 2022

Commits on Jun 16, 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 committed Jun 16, 2022
    Copy the full SHA
    f14e61a View commit details
    Browse the repository at this point in the history