Upgrade Protobuf.js 6 code to work with 6.8

pull/11501/head
murgatroid99 8 years ago
parent 596c05a324
commit b48ec8b171
  1. 2
      src/node/src/protobuf_js_6_common.js

@ -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);
};
};

Loading…
Cancel
Save