]> Cypherpunks repositories - gostls13.git/commit
Revert "encoding/json: avoid work when unquoting strings"
authorFilippo Valsorda <filippo@golang.org>
Tue, 20 Aug 2019 21:29:04 +0000 (17:29 -0400)
committerAndrew Bonventre <andybons@golang.org>
Wed, 21 Aug 2019 15:20:00 +0000 (15:20 +0000)
commiteee07a8e685e72c287ca4a0e7a049ce941ef6ab3
treea5f419187df6ee5691e8386e2f777077219064ed
parentc61c29fe563134f752ea14e794d08031982145e8
Revert "encoding/json: avoid work when unquoting strings"

This reverts CL 151157.

CL 151157 introduced a crash when decoding into ",string" fields. It
came with a moderate speedup, so at this stage of the release cycle
let's just revert it, and reapply it in Go 1.14 with the fix in CL 190659.

Also applied the test cases from CL 190659.

Updates #33728

Change-Id: Ie46e2bc15224b251888580daf6b79d5865f3878e
Reviewed-on: https://go-review.googlesource.com/c/go/+/190909
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
src/encoding/json/decode.go
src/encoding/json/decode_test.go