]> Cypherpunks repositories - gostls13.git/commit
misc/wasm: improve error message if javascript polyfills are required
authorRichard Musiol <mail@richard-musiol.de>
Sun, 11 Oct 2020 08:23:45 +0000 (10:23 +0200)
committerRichard Musiol <neelance@gmail.com>
Wed, 21 Oct 2020 13:19:35 +0000 (13:19 +0000)
commit54c0237346adfc2cac7bbebba80d652227ab6ea5
tree21dcf1c45f990cc6583d2201249f110c4d918055
parent9848e93cb76f068b97e8ea342c33cc09b553790f
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>
misc/wasm/wasm_exec.js