]> Cypherpunks repositories - gostls13.git/commit
math/big: produce valid JSON in Int.MarshalJSON when nil
authorcuiweixie <cuiweixie@gmail.com>
Sat, 12 Feb 2022 15:19:18 +0000 (15:19 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 2 Mar 2022 11:27:34 +0000 (11:27 +0000)
commit9f1239b90a7a48c5dc68a7eee08d8e1fba56db80
treeb4c8dd3ed690401f2ad99b5c330b745bbd05bd0f
parent6da16b6ad5787a043fc9978d2d009934e3b2e165
math/big: produce valid JSON in Int.MarshalJSON when nil

Fixes #50940.

Change-Id: Ie2a0c4505ca9d7e448017d9d00a020a6b3996be3
GitHub-Last-Rev: afd8c6b5598f43de25831c700b8d76cd97571426
GitHub-Pull-Request: golang/go#50941
Reviewed-on: https://go-review.googlesource.com/c/go/+/381963
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Trust: Daniel Martí <mvdan@mvdan.cc>
src/math/big/intmarsh.go
src/math/big/intmarsh_test.go