diff options
author | Adam Cozzette <acozzette@google.com> | 2017-03-06 15:12:19 -0800 |
---|---|---|
committer | Adam Cozzette <acozzette@google.com> | 2017-03-06 15:37:40 -0800 |
commit | 651ba62ab5a9c35e157380e2fd89cf77febb47b9 (patch) | |
tree | 2aa83e2d2ac475a1b74132b9a07a82dba67f752e /js/map.js | |
parent | 008ff033ef3308512c1da2b7cdadf50a6296251a (diff) | |
download | protobuf-651ba62ab5a9c35e157380e2fd89cf77febb47b9.tar.gz protobuf-651ba62ab5a9c35e157380e2fd89cf77febb47b9.tar.bz2 protobuf-651ba62ab5a9c35e157380e2fd89cf77febb47b9.zip |
JS: ensure that extension values are serialized even if they're falsy
There was a bug where for JavaScript we would only serialize an
extension value if it evaluated as truthy, which meant that values like
0 would get silently dropped (even in proto2, where field presence is
significant). This fixes issue #2605, and takes care of the output of
toObject() in addition to the binary format.
Diffstat (limited to 'js/map.js')
0 files changed, 0 insertions, 0 deletions