mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
fix mailru/easyjson#310 (#311)
* fix mailru/easyjson#310 * reset byteValueCloned on lexer consume, after review #310
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user