protobuf.js
protobuf.js copied to clipboard
bugfix: unexpected output when decoding maps with long keys
protobuf.js version: 7.2.2
Resolves https://github.com/protobufjs/protobuf.js/issues/1203
As illustrated in the attached test, {"1":"2"} is transformed into {"\x01\x00\x00\x00\x00\x00\x00\x00":2} without the decoder fix. Applying util.longToHash to the long key value here isn't necessary
can anyone helps review that bugfix please?