Empties the sharedString map on reset on go and csharp (#6187)

Fixes go tests
This commit is contained in:
mustiikhalil
2020-10-26 22:38:24 +03:00
committed by GitHub
parent 914c646014
commit c7586e85aa
4 changed files with 48 additions and 1 deletions

View File

@@ -53,6 +53,12 @@ func (b *Builder) Reset() {
b.vtable = b.vtable[:0]
}
if b.sharedStrings != nil {
for key := range b.sharedStrings {
delete(b.sharedStrings, key)
}
}
b.head = UOffsetT(len(b.Bytes))
b.minalign = 1
b.nested = false