diff options
author | Richard Musiol <mail@richard-musiol.de> | 2018-10-02 19:11:14 +0200 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-10-02 17:33:25 +0000 |
commit | e9c178da3bcaecd07452b67bc5dbe41db3250937 (patch) | |
tree | b7186a1421d4b1ec943b274eaa4aadd2681d12df | |
parent | 26957168c4c0cdcc7ca4f0b19d0eb19474d224ac (diff) | |
download | go-e9c178da3bcaecd07452b67bc5dbe41db3250937.tar.gz go-e9c178da3bcaecd07452b67bc5dbe41db3250937.zip |
[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 <bradfitz@golang.org>
(cherry picked from commit cfb603b0b5fb9c1e72be665b2d65743ddf18c779)
Reviewed-on: https://go-review.googlesource.com/139057
Reviewed-by: Richard Musiol <neelance@gmail.com>
-rw-r--r-- | misc/wasm/wasm_exec.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/wasm/wasm_exec.html b/misc/wasm/wasm_exec.html index cc37ea73ce..9922701792 100644 --- a/misc/wasm/wasm_exec.html +++ b/misc/wasm/wasm_exec.html @@ -12,6 +12,11 @@ license that can be found in the LICENSE file. </head> <body> + <!-- + Add the following polyfill for Microsoft Edge 17/18 support: + <script src="https://cdn.jsdelivr.net/npm/text-encoding@0.7.0/lib/encoding.min.js"></script> + (see https://caniuse.com/#feat=textencoder) + --> <script src="wasm_exec.js"></script> <script> if (!WebAssembly.instantiateStreaming) { // polyfill |