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 zhengjitf committed Apr 15, 2022
1 parent cf006a4 commit 5d88b58
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 5d88b58

Please sign in to comment.