Skip to content

Commit e5489cf

Browse files
neelancebradfitz
authored andcommitted
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]>
1 parent ed969a0 commit e5489cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

misc/wasm/wasm_exec.html

+5
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)