You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mapstr: fix M.Clone behaviour for arrays of M (#262)
The current implementation does not clone in branches of slices in a
mapstr.M, resulting in cases where the clone will share values with the
original and allowing unexpected mutation of the original. This change
fixes that by adding slices type handling. Note that this will not fix
cases of unexpected sharing where the node value type is not a mapstr.M
or map[string]any, so structs that are included with pointer fields will
still show this effect.
0 commit comments