mirror of https://github.com/grpc/grpc-node.git
Merge pull request #877 from the9000/the9000-issue-876-loadSync-TypeError
Fix a TypeError loading a non-existent proto file.
This commit is contained in:
commit
c106315628
|
|
@ -121,7 +121,7 @@ function getAllHandledReflectionObjects(
|
|||
if (isHandledReflectionObject(obj)) {
|
||||
return [[objName, obj]];
|
||||
} else {
|
||||
if (isNamespaceBase(obj) && typeof obj.nested !== undefined) {
|
||||
if (isNamespaceBase(obj) && typeof obj.nested !== 'undefined') {
|
||||
return Object.keys(obj.nested!)
|
||||
.map((name) => {
|
||||
return getAllHandledReflectionObjects(obj.nested![name], objName);
|
||||
|
|
|
|||
Loading…
Reference in New Issue