Embedded struct members

39 views
Skip to first unread message

Augusto Roman

unread,
Jul 15, 2015, 4:12:55 AM7/15/15
to goph...@googlegroups.com
It seems like embedded structs don't get properly converted to JS objects -- the anonymous embedded fields aren't promoted to the parent object like I would expect.

Produces this in the console:


The anonymous field appears to be given an empty name.

With two anonymous fields (http://www.gopherjs.org/playground/#/WPqBJFZFa_), one of them is blown away:

Bug?

- Augusto
Reply all
Reply to author
Forward
0 new messages