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

Solve JS<->Wasm i64 values for browsers #1

Open
loredanacirstea opened this issue May 14, 2020 · 1 comment
Open

Solve JS<->Wasm i64 values for browsers #1

loredanacirstea opened this issue May 14, 2020 · 1 comment

Comments

@loredanacirstea
Copy link
Owner

For Node, we use node --experimental-wasm-bigint. A functional solution needs to also be found for browsers.

Related: WebAssembly/JS-BigInt-integration#32

@loredanacirstea
Copy link
Owner Author

The path is becoming clearer.

Firefox has BigInt support: https://www.asumu.xyz/blog/2020/07/06/shipping-webassembly-s-bigint-i64-conversion-in-firefox/

The tl;dr summary: starting in Firefox 78 (released June 30, 2020), you will be able to write WebAssembly functions that pass 64-bit integers to JavaScript (where they will turn into BigInts) and vice versa.

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

No branches or pull requests

1 participant