Make exportIdentifiers and array so that base object properties are not accounted (#137)
This commit is contained in:
committed by
Henry Zhu
parent
3210bbbce0
commit
952d50faf9
@@ -939,10 +939,10 @@ pp.checkExport = function (node, checkNames, isDefault) {
|
||||
};
|
||||
|
||||
pp.checkDuplicateExports = function(node, name, isDefault) {
|
||||
if (this.state.exportedIdentifiers[name]) {
|
||||
if (this.state.exportedIdentifiers.indexOf(name) > -1) {
|
||||
this.raiseDuplicateExportError(node, name, isDefault);
|
||||
}
|
||||
this.state.exportedIdentifiers[name] = true;
|
||||
this.state.exportedIdentifiers.push(name);
|
||||
};
|
||||
|
||||
pp.raiseDuplicateExportError = function(node, name, isDefault) {
|
||||
|
||||
Reference in New Issue
Block a user