Use new oneofs option in deserialize call

This commit is contained in:
murgatroid99 2017-03-21 18:21:05 -07:00
parent d2baf4aa0a
commit 4aaea2f16a
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ exports.deserializeCls = function deserializeCls(cls, options) {
defaults: true, defaults: true,
bytes: options.binaryAsBase64 ? String : Buffer, bytes: options.binaryAsBase64 ? String : Buffer,
longs: options.longsAsStrings ? String : null, longs: options.longsAsStrings ? String : null,
enums: String enums: String,
oneofs: true
}; };
/** /**
* Deserialize a buffer to a message object * Deserialize a buffer to a message object