Skip to content
Snippets Groups Projects
Commit a9dcbab0 authored by Richard Musiol's avatar Richard Musiol Committed by Richard Musiol
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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 6d0f757b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment