Fixed to_entries and del bug #1886

This commit is contained in:
Mike Farah
2023-11-30 14:04:54 +11:00
parent c11a53322b
commit 730f240d24
5 changed files with 28 additions and 7 deletions
+1
View File
@@ -205,6 +205,7 @@ func (n *CandidateNode) AddKeyValueChild(rawKey *CandidateNode, rawValue *Candid
value := rawValue.Copy()
value.SetParent(n)
value.IsMapKey = false // force this, incase we are creating a value from a key
value.Key = key
n.Content = append(n.Content, key, value)