From b48ec8b171cbc017c3f820a2d63b30f300e530da Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Wed, 14 Jun 2017 14:47:05 -0700 Subject: [PATCH] Upgrade Protobuf.js 6 code to work with 6.8 --- src/node/src/protobuf_js_6_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/src/protobuf_js_6_common.js b/src/node/src/protobuf_js_6_common.js index 91a458aa20e..e2451b4be0a 100644 --- a/src/node/src/protobuf_js_6_common.js +++ b/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); }; };