SIGN IN SIGN UP

Protocol Buffers - Google's data interchange format

0 0 180 C++

Expect fail when serialize inf and nan for Value.number_value in json format. fixes #11259

Implemented in java, c++, python and upb. Also added conformance test.

https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value
where it says:
attempting to serialize NaN or Infinity results in error. (We can't serialize these as string "NaN" or "Infinity" values like we do for regular fields, because they would parse as string_value, not number_value).

PiperOrigin-RevId: 500828964
J
Jie Luo committed
ca1cb1ba80ef18f5dccfb5b6ee7fa623ba6caab5
Parent: 2d6ee17
Committed by Copybara-Service <copybara-worker@google.com> on 1/9/2023, 11:57:42 PM