Skip to content

Commit e9c178d

Browse files
neelancebradfitz
authored andcommitted
[release-branch.go1.11] misc/wasm: add mention of polyfill for Edge support
Edge supports WebAssembly but not TextEncoder or TextDecoder. This change adds a comment pointing to a polyfill that could be used. The polyfill is not added by default, because we want to let the user decide if/how to include the polyfill. Fixes #27295 Change-Id: I375f58f2168665f549997b368428c398dfbbca1c Reviewed-on: https://go-review.googlesource.com/139037 Reviewed-by: Brad Fitzpatrick <[email protected]> (cherry picked from commit cfb603b0b5fb9c1e72be665b2d65743ddf18c779) Reviewed-on: https://go-review.googlesource.com/139057 Reviewed-by: Richard Musiol <[email protected]>
1 parent 2695716 commit e9c178d

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+
Add the following polyfill for Microsoft Edge 17/18 support:
17+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/encoding.min.js"></script>
18+
(see https://caniuse.com/#feat=textencoder)
19+
-->
1520
<script src="wasm_exec.js"></script>
1621
<script>
1722
if (!WebAssembly.instantiateStreaming) { // polyfill

0 commit comments

Comments
 (0)