]> Cypherpunks repositories - gostls13.git/commit
syscall/js: extend ValueOf to support arrays and objects
authorRichard Musiol <mail@richard-musiol.de>
Tue, 31 Jul 2018 13:12:57 +0000 (15:12 +0200)
committerRichard Musiol <neelance@gmail.com>
Tue, 7 Aug 2018 10:56:56 +0000 (10:56 +0000)
commita9dcbab0fd4b5adfb40cb924f14ee2af9c8938eb
tree93b24123a5af7262761a54e3c878305278215353
parent6d0f757bb9a9e9caa6ed0356ab43e7705c3e2015
syscall/js: extend ValueOf to support arrays and objects

This commits adds []interface{} and map[string]interface{} as quick
ways to create JavaScript arrays and objects. They correspond to the
JavaScript notations [...] and {...}. A type alias can be used for
a concise notation.

Change-Id: I98bb08dbef1e0f3bd3d65c732d6b09e1520026ba
Reviewed-on: https://go-review.googlesource.com/126855
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/js/js.go
src/syscall/js/js_test.go