Merge pull request #14373 from DLehenbauer/fixSpreadUsage

Fix TypeError when JSDoc.tags is undefined
This commit is contained in:
Mohamed Hegazy 2017-02-28 16:37:04 -08:00 committed by GitHub
commit 97965574ed

View file

@ -1554,7 +1554,10 @@ namespace ts {
}
}
else {
result.push(...filter((doc as JSDoc).tags, tag => tag.kind === kind));
const tags = (doc as JSDoc).tags;
if (tags) {
result.push(...filter(tags, tag => tag.kind === kind));
}
}
}
return result;