Skip to content

Commit a0e7f12

Browse files
silbinarywolfRichard Musiol
authored and
Richard Musiol
committed
misc/wasm: add polyfill for TextEncoder/TextDecoder for Edge support
Edge supports WASM but not TextEncoder or TextDecoder. This PR adds a polyfill to `misc/wasm/wasm_exec.js` to fix this. Fixes #27295 Change-Id: Ie35ee5604529b170a5dc380eb286f71bdd691d3e GitHub-Last-Rev: a587eda GitHub-Pull-Request: #27296 Reviewed-on: https://go-review.googlesource.com/131718 Reviewed-by: Agniva De Sarker <[email protected]> Reviewed-by: Richard Musiol <[email protected]>
1 parent d1f7470 commit a0e7f12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

misc/wasm/wasm_exec.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
</head>
1313

1414
<body>
15+
<!--
16+
Polyfill for TextEncoder and TextDecoder for Microsoft Edge 17/18 support
17+
https://caniuse.com/#feat=textencoder
18+
-->
19+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/encoding.min.js"></script>
1520
<script src="wasm_exec.js"></script>
1621
<script>
1722
if (!WebAssembly.instantiateStreaming) { // polyfill

0 commit comments

Comments
 (0)