fix mailru/easyjson#310 (#311)

* fix mailru/easyjson#310

* reset byteValueCloned on lexer consume, after review #310
This commit is contained in:
YaroslavPodorvanov
2020-09-16 21:26:36 +03:00
committed by GitHub
parent 8ab5ff9cd8
commit 45d2d57d45
+1
View File
@@ -401,6 +401,7 @@ func (r *Lexer) scanToken() {
// consume resets the current token to allow scanning the next one.
func (r *Lexer) consume() {
r.token.kind = tokenUndef
r.token.byteValueCloned = false
r.token.delimValue = 0
}