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:
Michael Lumish 2019-07-29 11:41:35 -07:00 committed by GitHub
commit c106315628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);