This is a small change to allow accessing the public fields of unexported embedded struct. For example:
type base struct {
Name string
}
type Foo struct {
base
}
vm := goja.New()
vm.Set("foo", Foo{base{Name: "test"}})
vm.RunString("foo.Name") // currently prints undefined, expected "test"
This is a small change to allow accessing the public fields of unexported embedded struct. For example: