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