mirror of https://github.com/grpc/grpc-node.git
commit
afa951c30a
|
|
@ -138,7 +138,8 @@ exports.loadObject = function loadObject(value, options) {
|
|||
if (value.hasOwnProperty('nested')) {
|
||||
// It's a namespace or root object
|
||||
if (value.nested !== null && value.nested !== undefined) {
|
||||
Object.values(value.nested).forEach(nested => {
|
||||
var values = Object.keys(value.nested).map(key => value.nested[key]);
|
||||
values.forEach(nested => {
|
||||
result[nested.name] = loadObject(nested, options);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue