We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This package doesn't work with chrome extensions
// Don’t use this! (async () => { const response = await fetch('fibonacci.wasm'); const buffer = await response.arrayBuffer(); const module = new WebAssembly.Module(buffer); const instance = new WebAssembly.Instance(module); const result = instance.exports.fibonacci(42); console.log(result); })();
//do this~ (async () => { const response = await fetch('fibonacci.wasm'); const buffer = await response.arrayBuffer(); const module = await WebAssembly.compile(buffer); const instance = await WebAssembly.instantiate(module); const result = instance.exports.fibonacci(42); console.log(result); })();
https://developers.google.com/web/updates/2018/04/loading-wasm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This package doesn't work with chrome extensions
// Don’t use this! (async () => { const response = await fetch('fibonacci.wasm'); const buffer = await response.arrayBuffer(); const module = new WebAssembly.Module(buffer); const instance = new WebAssembly.Instance(module); const result = instance.exports.fibonacci(42); console.log(result); })();
//do this~ (async () => { const response = await fetch('fibonacci.wasm'); const buffer = await response.arrayBuffer(); const module = await WebAssembly.compile(buffer); const instance = await WebAssembly.instantiate(module); const result = instance.exports.fibonacci(42); console.log(result); })();
https://developers.google.com/web/updates/2018/04/loading-wasm
The text was updated successfully, but these errors were encountered: