8000 check for presence of array · imskojs/TypeScript@835950a · GitHub
[go: up one dir, main page]

Skip to content

Commit 835950a

Browse files
committed
check for presence of array
1 parent 98fd75d commit 835950a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ namespace ts {
11531153
for (const id in lookupTable) {
11541154
const { exportsWithDuplicate } = lookupTable[id];
11551155
// It's not an error if the file with multiple `export *`s with duplicate names exports a member with that name itself
1156-
if (id === "export=" || !exportsWithDuplicate.length || hasProperty(symbols, id)) {
1156+
if (id === "export=" || !(exportsWithDuplicate && exportsWithDuplicate.length) || hasProperty(symbols, id)) {
11571157
continue;
11581158
}
11591159
for (const node of exportsWithDuplicate) {

0 commit comments

Comments
 (0)
0