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: Web assembly async instantiation #450

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

cbrzn
Copy link
Contributor

@cbrzn cbrzn commented Aug 26, 2021

If the WASM files are bigger than 4kb, the main thread will be disallowed (See more here https://stackoverflow.com/questions/45284788/webassembly-compile-is-disallowed-on-the-main-thread-if-the-buffer-size-is-larg?rq=1)

The change on this PR implements the instantiation of the WebAssembly class through an async method, which is instantiate

@cbrzn cbrzn requested a review from dOrgJelli August 26, 2021 18:16
@cbrzn cbrzn changed the title Fix: Web assymble async instantiation Fix: Web assembly async instantiation Aug 26, 2021
@dOrgJelli dOrgJelli merged commit 9a0842d into prealpha-dev Aug 27, 2021
@dOrgJelli dOrgJelli deleted the fix/asyncify-init-async branch January 16, 2022 18:36
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