]> Cypherpunks repositories - gostls13.git/commit
encoding/json, text/template: use reflect.Value.Equal instead of ==
authorEmmanuel T Odeke <emmanuel@orijtech.com>
Fri, 8 Nov 2024 01:40:08 +0000 (17:40 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 8 Nov 2024 16:09:21 +0000 (16:09 +0000)
commit64e7f66b26d7e5a9d4a003e7867a5dcf939bba6d
tree17fdf7d1c352e09a00526fbd3a48a7b4ffd98229
parent2b33434287be85917ba8edc4a73f0a6ebaaea63e
encoding/json, text/template: use reflect.Value.Equal instead of ==

This change applies a fix for a reflect.Value incorrect comparison
using "==" or reflect.DeepEqual.
This change is a precursor to the change that'll bring in the
static analyzer "reflectvaluecompare", by ensuring that all tests
pass beforehand.

Updates #43993

Change-Id: I6c47eb0a1de6353ac7495cb8cb49b318b7ebba56
Reviewed-on: https://go-review.googlesource.com/c/go/+/626116
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/encoding/json/decode.go
src/text/template/exec.go