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

Handle precompiled modules in initSync on target web #3016

Merged
merged 1 commit into from Aug 3, 2022

Conversation

lukaslihotzki
Copy link
Contributor

While the default init can handle a variety of possible input types, initSync currently needs a BufferSource. With this change, initSync can also accept a WebAssembly.Module, so it is more consistent to default init.

This may be useful for workers and worklets when the compiled module is reused and blocking the thread is acceptable.

Copy link
Collaborator

@Liamolucko Liamolucko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good apart from one nitpick about the documentation.

crates/cli-support/src/js/mod.rs Outdated Show resolved Hide resolved
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.

None yet

3 participants