]> Cypherpunks repositories - gostls13.git/commit
encoding/json: merge FieldStack if the error's Field exists.
authorj2gg0s <j2gg0s@gmail.com>
Thu, 15 Aug 2024 02:11:44 +0000 (02:11 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 15 Aug 2024 20:28:20 +0000 (20:28 +0000)
commitbd8977be0c429a6eec8a99bfefc4e41c74891865
tree907e447e0f9b604c6e29a9069220e6a619d8fb1b
parent970b1c042cddb5f944d3db1cc2c3d87a3ffabe52
encoding/json: merge FieldStack if the error's Field exists.

When people return UnmarshalTypeError in UnmarshalJSON, we should append error's Field to FieldStack.

Fixes #68750

Change-Id: I0a5a9b259a1b569de1bebc815ec936c913e10469
GitHub-Last-Rev: 18796addc3fa0d367ba1a3f4bd268ca246890fe0
GitHub-Pull-Request: golang/go#68870
Reviewed-on: https://go-review.googlesource.com/c/go/+/605455
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/encoding/json/decode.go
src/encoding/json/decode_test.go