]> Cypherpunks repositories - gostls13.git/commit
encoding/json: call reflect.TypeOf with nil pointers rather than allocating
authorTim Cooper <tim.cooper@layeh.com>
Tue, 19 Jun 2018 15:34:17 +0000 (12:34 -0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Aug 2018 02:38:02 +0000 (02:38 +0000)
commitdc272a4393dc2ba5f54f9cc37670d5581b6e774f
treee45d824fa4b3966ace17d50e7265b924d0c30245
parent3333b6407d8bae64cb8bf62de1425abd8714a51c
encoding/json: call reflect.TypeOf with nil pointers rather than allocating

Updates #26775

Change-Id: I83c9eeda59769d2f35e0cc98f3a8579861d5978b
Reviewed-on: https://go-review.googlesource.com/119715
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/json/decode.go
src/encoding/json/encode.go