misc/wasm: check type of argument to Go.run
misc/wasm: check type of argument to Go.run

This results in a nicer error message if the argument to Go.run is
omitted or of the wrong type.

Fixes #37000

Change-Id: I7f36d007f41a79b2cea1cebf5cce127786341202
Reviewed-on: https://go-review.googlesource.com/c/go/+/266117
Trust: Richard Musiol <eb533a4b7e679e5143b37a0022300174aaa46b21@gmail.com>
Run-TryBot: Richard Musiol <eb533a4b7e679e5143b37a0022300174aaa46b21@gmail.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>

cloudflare/go,nawawi/go,CAFxX/go,golang/go,nawawi/go,cloudflare/go,cloudflare/go,cloudflare/go,nawawi/go,cloudflare/go,cloudflare/go,CAFxX/go,CAFxX/go,CAFxX/go,nawawi/go,nawawi/go,golang/go,nawawi/go,golang/go,golang/go,CAFxX/go,CAFxX/go,golang/go,cloudflare/go,golang/go,nawawi/go,golang/go,CAFxX/go,CAFxX/go,golang/go,nawawi/go,cloudflare/go