mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-28 05:52:21 +03:00
Merge pull request #953 from alexcrichton/bigint
Add caveat for `BigInt` and `u64` in browser support
This commit is contained in:
commit
fe35750448
@ -50,6 +50,14 @@ also like to be aware of it!
|
|||||||
has a [`TextEncoder` polyfill implementation][mdntepi] to get you started
|
has a [`TextEncoder` polyfill implementation][mdntepi] to get you started
|
||||||
as well.
|
as well.
|
||||||
|
|
||||||
|
* **BigInt and `u64`** - currently the WebAssembly specification for the web
|
||||||
|
forbids the usage of 64-bit integers (Rust types `i64` and `u64`) in
|
||||||
|
exported/imported functions. When using `wasm-bindgen`, however, `u64` is
|
||||||
|
allowed! The reason for this is that it's translated to the `BigInt` type in
|
||||||
|
JS. The `BigInt` class, however, is only currently supported in Chrome (as of
|
||||||
|
the time of this writing) and isn't supported in Firefox or Edge, for
|
||||||
|
example.
|
||||||
|
|
||||||
If you find other incompatibilities please report them to us! We'd love to
|
If you find other incompatibilities please report them to us! We'd love to
|
||||||
either keep this list up-to-date or fix the underlying bugs :)
|
either keep this list up-to-date or fix the underlying bugs :)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user