mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 09:41:33 +00:00
Update browser support for BigInt
(#1728)
* Update browser support for `BigInt` `BigInt` is supported in Firefox as of Firefox 68! Also replaced Firefox with Safari as a second example of an unsupported browser. * Add link to "BigInt" on "Can I use..."
This commit is contained in:
@ -58,9 +58,10 @@ also like to be aware of it!
|
|||||||
forbids the usage of 64-bit integers (Rust types `i64` and `u64`) in
|
forbids the usage of 64-bit integers (Rust types `i64` and `u64`) in
|
||||||
exported/imported functions. When using `wasm-bindgen`, however, `u64` is
|
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
|
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
|
JS. The `BigInt` class, however, is only currently supported in Chrome 67+ and
|
||||||
the time of this writing) and isn't supported in Firefox or Edge, for
|
Firefox 68+ (as of the time of this writing) and isn't supported in Edge or
|
||||||
example.
|
Safari, for example. For more, up-to-date details, see [`BigInt` on Can I
|
||||||
|
use...][ciu_bigint].
|
||||||
|
|
||||||
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 :)
|
||||||
@ -71,3 +72,4 @@ either keep this list up-to-date or fix the underlying bugs :)
|
|||||||
[`text-encoding`]: https://www.npmjs.com/package/text-encoding
|
[`text-encoding`]: https://www.npmjs.com/package/text-encoding
|
||||||
[soq]: https://stackoverflow.com/questions/40662142/polyfill-for-textdecoder/46549188#46549188
|
[soq]: https://stackoverflow.com/questions/40662142/polyfill-for-textdecoder/46549188#46549188
|
||||||
[mdntepi]: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder#Polyfill
|
[mdntepi]: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder#Polyfill
|
||||||
|
[ciu_bigint]: https://caniuse.com/#feat=bigint
|
||||||
|
Reference in New Issue
Block a user