Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f141a2

Browse files
committed
fix flow errors
1 parent 6334c8d commit 6f141a2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/babel-parser/src/parser/statement.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,12 +1940,13 @@ export default class StatementParser extends ExpressionParser {
19401940
} else if (node.specifiers && node.specifiers.length) {
19411941
// Named exports
19421942
for (const specifier of node.specifiers) {
1943-
const { exported, local } = specifier;
1943+
const { exported } = specifier;
19441944
const exportedName =
19451945
exported.type === "Identifier" ? exported.name : exported.value;
19461946
this.checkDuplicateExports(specifier, exportedName);
19471947
// $FlowIgnore
1948-
if (!isFrom && local) {
1948+
if (!isFrom && specifier.local) {
1949+
const { local } = specifier;
19491950
if (local.type === "StringLiteral") {
19501951
this.raise(
19511952
specifier.start,

0 commit comments

Comments
 (0)