From c1b758f48859dbfe3ff8fe0c3e9b6adf00a711b8 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Tue, 21 Mar 2017 18:21:05 -0700 Subject: [PATCH] Use new oneofs option in deserialize call --- src/node/src/protobuf_js_6_common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/src/protobuf_js_6_common.js b/src/node/src/protobuf_js_6_common.js index 5e2b94e1e21..6a85e4ac23d 100644 --- a/src/node/src/protobuf_js_6_common.js +++ b/src/node/src/protobuf_js_6_common.js @@ -50,7 +50,8 @@ exports.deserializeCls = function deserializeCls(cls, options) { defaults: true, bytes: options.binaryAsBase64 ? String : Buffer, longs: options.longsAsStrings ? String : null, - enums: String + enums: String, + oneofs: true }; /** * Deserialize a buffer to a message object