diff options
| author | Richard Musiol <mail@richard-musiol.de> | 2018-05-17 12:33:01 +0200 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-05-18 18:16:50 +0000 |
| commit | 1771edb5904524deb6ef0c846e5357fd35c756fb (patch) | |
| tree | 1954e53658b48c20555a161400638663cd4c25e3 /src/debug | |
| parent | db37e1600fb2fc698b14e745005c4cf44251d2a9 (diff) | |
| download | go-1771edb5904524deb6ef0c846e5357fd35c756fb.tar.xz | |
misc/wasm: make wasm_exec.js more flexible
This commit improves wasm_exec.js to give more control to the
code that uses this helper:
- Allow to load and run more than one Go program at the same time.
- Move WebAssembly.instantiate out of wasm_exec.js so the caller
can optimize for load-time performance, e.g. by using
instantiateStreaming.
- Allow caller to provide argv, env and exit callback.
Updates #18892
Change-Id: Ib582e6f43848c0118ea5c89f2e24b371c45c2050
Reviewed-on: https://go-review.googlesource.com/113515
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/debug')
0 files changed, 0 insertions, 0 deletions
