check for presence of array

This commit is contained in:
Wesley Wigham
2015-12-04 13:44:16 -08:00
parent 98fd75d84e
commit 835950a674

View File

@@ -1153,7 +1153,7 @@ namespace ts {
for (const id in lookupTable) {
const { exportsWithDuplicate } = lookupTable[id];
// It's not an error if the file with multiple `export *`s with duplicate names exports a member with that name itself
if (id === "export=" || !exportsWithDuplicate.length || hasProperty(symbols, id)) {
if (id === "export=" || !(exportsWithDuplicate && exportsWithDuplicate.length) || hasProperty(symbols, id)) {
continue;
}
for (const node of exportsWithDuplicate) {