mirror of https://github.com/grpc/grpc-node.git
				
				
				
			Fix for node 6.
This commit is contained in:
		
							parent
							
								
									8b6ecb8303
								
							
						
					
					
						commit
						f3b22bcbc0
					
				|  | @ -138,7 +138,8 @@ 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]); | ||||||
|  |       values.forEach(nested => { | ||||||
|         result[nested.name] = loadObject(nested, options); |         result[nested.name] = loadObject(nested, options); | ||||||
|       }); |       }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue