Merge pull request #11501 from murgatroid99/node_protobufjs_6.8_support

Upgrade Protobuf.js 6 code to work with 6.8
pull/11536/head
Michael Lumish 8 years ago committed by GitHub
commit 42d31cb4bf
  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