mirror of https://github.com/grpc/grpc-node.git
Use new oneofs option in deserialize call
This commit is contained in:
parent
d2baf4aa0a
commit
4aaea2f16a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue