Skip to content

Commit

Permalink
fix: parseExportNamesInto specifiers typo (facebook#22537)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored and nevilm-lt committed Apr 22, 2022
1 parent 1cd8714 commit 69e888f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ async function parseExportNamesInto(
addExportNames(names, node.declaration.id);
}
}
if (node.specificers) {
const specificers = node.specificers;
for (let j = 0; j < specificers.length; j++) {
addExportNames(names, specificers[j].exported);
if (node.specifiers) {
const specifiers = node.specifiers;
for (let j = 0; j < specifiers.length; j++) {
addExportNames(names, specifiers[j].exported);
}
}
continue;
Expand Down

0 comments on commit 69e888f

Please sign in to comment.