@@ -19,8 +19,8 @@ also like to be aware of it!
19
19
an example of doing this too] ( ../examples/wasm2js.html ) ). Note
20
20
that at this time no bundler will do this by default, but we'd love to
21
21
document plugins which do this if you are aware of one!
22
-
23
- * ** Edge** - the ` TextEncoder ` and ` TextDecoder ` APIs are not currently
22
+
23
+ * ** Edge before 79+ ** - the ` TextEncoder ` and ` TextDecoder ` APIs where not
24
24
available in Edge which ` wasm-bindgen ` uses to encode/decode strings between
25
25
JS and Rust. You can polyfill this with at least one of two strategies:
26
26
@@ -31,15 +31,13 @@ also like to be aware of it!
31
31
32
32
``` js
33
33
const webpack = require (' webpack' );
34
-
35
34
module .exports = {
36
35
plugins: [
37
36
new webpack.ProvidePlugin ({
38
37
TextDecoder: [' text-encoding' , ' TextDecoder' ],
39
38
TextEncoder: [' text-encoding' , ' TextEncoder' ]
40
39
})
41
40
]
42
-
43
41
// ... other configuration options
44
42
};
45
43
```
@@ -58,10 +56,9 @@ also like to be aware of it!
58
56
forbids the usage of 64-bit integers (Rust types `i64` and `u64`) in
59
57
exported/imported functions. When using `wasm-bindgen`, however, `u64` is
60
58
allowed! The reason for this is that it' s translated to the ` BigInt` type in
61
- JS . The ` BigInt` class , however, is only currently supported in Chrome 67 + and
62
- Firefox 68 + (as of the time of this writing) and isn' t supported in Edge or
63
- Safari, for example. For more, up-to-date details, see [`BigInt` on Can I
64
- use...][ciu_bigint].
59
+ JS . The ` BigInt` class is supported by all major browsers starting in the
60
+ following versions: Chrome 67 + , Firefox 68 + , Edge 79 + , and Safari 14 + .
61
+
65
62
66
63
If you find other incompatibilities please report them to us! We' d love to
67
64
either keep this list up-to-date or fix the underlying bugs :)
@@ -72,4 +69,3 @@ either keep this list up-to-date or fix the underlying bugs :)
72
69
[`text-encoding`]: https://www.npmjs.com/package/text-encoding
73
70
[soq]: https://stackoverflow.com/questions/40662142/polyfill-for-textdecoder/46549188#46549188
74
71
[mdntepi]: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder#Polyfill
75
- [ciu_bigint]: https: // caniuse.com/#feat=bigint
0 commit comments