Skip to content

Conversation

minggangw
Copy link
Member

We are using message.dot to generate the JavaScript messages for
serialization/deserialization. Through testing, we found two problems:

  • To calculate the byte size of string, Buffer.byteLength should be
    used.
  • If the message has a section of array, we should assign the data of the
    array to null when its capacity is 0.

This patch fixed these problems above.

Fix #391

We are using message.dot to generate the JavaScript messages for
serialization/deserialization. Through testing, we found two problems:

- To calculate the byte size of string, Buffer.byteLength should be
  used.
- If the message has a section of array, we should assign the data of the
  array to null when its capacity is 0.

This patch fixed these problems above.

Fix RobotWebTools#391
@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.529% when pulling b533ab3 on minggangw:fix-issue-391 into 5dedec1 on RobotWebTools:develop.

@minggangw minggangw merged commit b89e2f4 into RobotWebTools:develop Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

errors in message.dot
2 participants