Closed yunyu closed 4 years ago
Given the following proto:
message MyMessage { map<string, string> myDict = 1; }
Running
const pbf = new Pbf(); MyMessage.write({foo: "", bar: "hi"}, pbf); console.log(MyMessage.read(new Pbf(pbf.finish()));
Results in { foo: true, bar: "hi" } instead of the expected {foo: "", bar: "hi"}.
{ foo: true, bar: "hi" }
{foo: "", bar: "hi"}
This was my fault - I had 2 fields with the same number assigned.
Given the following proto:
Running
Results in
{ foo: true, bar: "hi" }
instead of the expected{foo: "", bar: "hi"}
.