Upgrade Protobuf.js 6 code to work with 6.8

This commit is contained in:
murgatroid99 2017-06-14 14:47:05 -07:00
parent faae84a8cd
commit 26c4bffa79
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ exports.deserializeCls = function deserializeCls(cls, options) {
* @return {cls} The resulting object
*/
return function deserialize(arg_buf) {
return cls.decode(arg_buf).toObject(conversion_options);
return cls.toObject(cls.decode(arg_buf), conversion_options);
};
};