]> Cypherpunks.ru repositories - gostls13.git/commit
misc/wasm: check type of argument to Go.run
authorRichard Musiol <mail@richard-musiol.de>
Wed, 28 Oct 2020 23:07:04 +0000 (00:07 +0100)
committerRichard Musiol <neelance@gmail.com>
Mon, 2 Nov 2020 13:02:40 +0000 (13:02 +0000)
commit7be8358f70ff858f28b9aefe11986da25f1762bc
tree9951b3b20875f33e0ea718dea118f628392623c9
parentf2ee58b6bb3d8312dad2ed7826c1a0e67aea8483
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 <neelance@gmail.com>
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
misc/wasm/wasm_exec.js