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

Remove the global Buffer dependency #319

Closed
wants to merge 1 commit into from

Conversation

makenowjust
Copy link

The global Buffer is used for loading base64 encoded string. However, this implicit and global dependency make some confusion and problems (#294, #305, and ruby/ruby.wasm#182).

The use of Buffer here is limited, so we can easily replace this by using atob function. This simplifies the user's build settings and reduces the file size since there is no need to include Buffer.

Thank you.

The global `Buffer` is used for loading base64 encoded string.
However, this **implicit** and **global** dependency makes some
confusions and problems (wasmerio#294, wasmerio#305, and ruby/ruby.wasm#182).

The use of `Buffer` here is limited, so we can easily replace this
by using `atob` function. This simplifies user's build settings
and reduces the file size since there is no need to include Buffer.
@Michael-F-Bryan
Copy link
Contributor

Superseded by #345.

@makenowjust makenowjust deleted the dont-use-buffer branch November 28, 2023 02:14
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