Permalink
Please sign in to comment.
Browse files
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>- Loading branch information...
Showing
with
41 additions
and 9 deletions.
- +26 −9 src/syscall/js/js.go
- +15 −0 src/syscall/js/js_test.go
0 comments on commit
a9dcbab