]> Cypherpunks repositories - gostls13.git/commit
Revert "encoding/json: reuse values when decoding map elements"
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 20 May 2020 17:03:31 +0000 (17:03 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 28 May 2020 22:17:10 +0000 (22:17 +0000)
commit107ebb178176f00c988a40943446af6f672b1e63
treefdcb3be3fe51241e9f50aa9792bf3ebabee44b32
parent86ed0955bf58ecb738b87892b4377e556e2cc88a
Revert "encoding/json: reuse values when decoding map elements"

This reverts golang.org/cl/179337.

Reason for revert: broke a few too many reasonably valid Go programs.
The previous behavior was perhaps less consistent, but the docs were
never very clear about when the decoder merges with existing values,
versus replacing existing values altogether.

Fixes #39149.

Change-Id: I1c1d857709b8398969fe421aa962f6b62f91763a
Reviewed-on: https://go-review.googlesource.com/c/go/+/234559
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
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