]> Cypherpunks repositories - gostls13.git/commit
syscall/js: improve panic messages
authorRichard Musiol <mail@richard-musiol.de>
Thu, 5 Jul 2018 17:55:08 +0000 (19:55 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 9 Jul 2018 23:04:30 +0000 (23:04 +0000)
commit2acae8741688ec29fff74118ffa0d0347ae8fc4d
treeb851b541de486f9acf2ea6ac5b657ab2fa295b09
parente97ef4127f153a2eb8b26685943310d4d19d5b60
syscall/js: improve panic messages

This commit adds the actual type to the panic message when calling
a method of Value on a Value with a bad type. It also adds better
panic messages to Value.Invoke and Value.Call.

Change-Id: Ic4b3aa29d3bef8e357be40cd07664ad602ffab12
Reviewed-on: https://go-review.googlesource.com/122376
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/syscall/js/js.go
src/syscall/js/js_test.go