commit | b48ec8b171cbc017c3f820a2d63b30f300e530da | [log] [tgz] |
---|---|---|
author | murgatroid99 <mlumish@google.com> | Wed Jun 14 14:47:05 2017 -0700 |
committer | murgatroid99 <mlumish@google.com> | Wed Jun 14 14:47:05 2017 -0700 |
tree | 4f2aded115dd75abbe37ef1b822e352fc8065041 | |
parent | 596c05a3244cb84c846faa33030cc46eb6dfd0af [diff] |
Upgrade Protobuf.js 6 code to work with 6.8
diff --git a/src/node/src/protobuf_js_6_common.js b/src/node/src/protobuf_js_6_common.js index 91a458a..e2451b4 100644 --- a/src/node/src/protobuf_js_6_common.js +++ b/src/node/src/protobuf_js_6_common.js
@@ -64,7 +64,7 @@ * @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); }; };