]> Cypherpunks.ru repositories - gostls13.git/commit
misc/wasm: handle error during instantiateStreaming
authorAgniva De Sarker <agnivade@yahoo.co.in>
Mon, 3 Sep 2018 06:32:25 +0000 (12:02 +0530)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 4 Sep 2018 07:02:45 +0000 (07:02 +0000)
commite2e44a5d161d5373f8124997382dd4169c1e8a00
tree6fcabfa430858438fdb6c3c562e67ede14c22a5f
parentdb3f52db8edfa51c76d1e3e1a417d46b85528132
misc/wasm: handle error during instantiateStreaming

The same catch block is there in wasm_exec.js for node processes.
Added it in browser invocations too, to prevent uncaught exceptions.

Change-Id: Icab577ec585fa86df3c76db508b49401bcdb52ae
Reviewed-on: https://go-review.googlesource.com/132916
Reviewed-by: Richard Musiol <neelance@gmail.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/wasm/wasm_exec.html