go/misc/wasm
Richard Musiol 54c0237346 misc/wasm: improve error message if javascript polyfills are required
wasm_exec.js expects that either "require" is available or that the
globals "crypto", "TextEncoder" and "TextDecoder" are already defined.
Report a better error message if this is not the case, suggesting the
use of a polyfill.

Updates #41482

Change-Id: I5473cae15c98ae42e39f5928245b7762e7a5a8bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/261357
Trust: Richard Musiol <neelance@gmail.com>
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2020-10-21 13:19:35 +00:00
..
go_js_wasm_exec misc/wasm: add scripts for running WebAssembly binaries 2018-03-30 05:13:31 +00:00
wasm_exec.html misc/wasm: add mention of polyfill for Edge support 2018-10-02 17:25:11 +00:00
wasm_exec.js misc/wasm: improve error message if javascript polyfills are required 2020-10-21 13:19:35 +00:00