]> Cypherpunks repositories - gostls13.git/commit
misc/wasm: pollute global JS namespace less
authorRichard Musiol <mail@richard-musiol.de>
Wed, 9 May 2018 13:18:59 +0000 (15:18 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 15 May 2018 14:15:07 +0000 (14:15 +0000)
commitdb91ee36514e70512615b3e28d0260cfa9270206
tree05d41a3b615324c2706798b52e322b35d8239256
parent3027932ac3d8d943a404e0b6f9d9ea390c8e6840
misc/wasm: pollute global JS namespace less

This commit changes wasm_exec.js so it only puts the single
name "go" into the global namespace. Other names became private
or were turned into a property/method of "go".

Change-Id: I633829dfd3c06936f092c0a14b9978bf855e41fe
Reviewed-on: https://go-review.googlesource.com/112980
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
misc/wasm/wasm_exec.html
misc/wasm/wasm_exec.js