Check for duplicate named exports in exported rest elements/properties (#164)
This commit is contained in:
@@ -947,6 +947,8 @@ pp.checkDeclaration = function(node) {
|
||||
}
|
||||
} else if (node.type === "ObjectProperty") {
|
||||
this.checkDeclaration(node.value);
|
||||
} else if (node.type === "RestElement" || node.type === "RestProperty") {
|
||||
this.checkDeclaration(node.argument);
|
||||
} else if (node.type === "Identifier") {
|
||||
this.checkDuplicateExports(node, node.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user