1
0
mirror of https://github.com/golang/go synced 2024-11-07 18:36:21 -07:00
go/misc
Richard Musiol 6fe7b43416 misc/wasm: free up memory on exit
Private fields of the Go class are not used any more after the program
has exited. Delete them to allow JavaScript's garbage collection to
clean up the WebAssembly instance.

Updates #26193.

Change-Id: I349784a49eaad0c22ceedd4f859df97132775537
Reviewed-on: https://go-review.googlesource.com/122296
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-11 10:22:17 +00:00
..
android
arm
cgo
chrome/gophertool
git
ios
linkcheck
nacl
sortac
swig
trace
wasm misc/wasm: free up memory on exit 2018-07-11 10:22:17 +00:00
benchcmp
editors