]> Cypherpunks repositories - gostls13.git/commit
syscall/js: improve type checks of js.Value's methods
authorRichard Musiol <mail@richard-musiol.de>
Sun, 24 Mar 2019 23:31:41 +0000 (00:31 +0100)
committerRichard Musiol <neelance@gmail.com>
Tue, 26 Mar 2019 09:47:28 +0000 (09:47 +0000)
commitcd5309355e25dda4a33bcf5c931aae5a15f9de94
tree61df0525b13a03092f127f4f6420e38988daf00c
parent0ec302c49ee3dd1a7f290db9a326bbfb734e8c35
syscall/js: improve type checks of js.Value's methods

Add more explicit checks if the given js.Value is of the correct type
instead of erroring on the JavaScript layer.

Change-Id: I30b18a76820fb68f6ac279bb88a57456f5bab467
Reviewed-on: https://go-review.googlesource.com/c/go/+/168886
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/js/js.go
src/syscall/js/js_test.go