fix hasOwnProperty object lookup conflict
This commit is contained in:
@@ -52,8 +52,7 @@ DefaultFormatter.prototype.checkCollisions = function () {
|
||||
var file = this.file;
|
||||
|
||||
var isLocalReference = function (node, scope) {
|
||||
var localImport = localImports[node.name];
|
||||
return t.isIdentifier(node) && localImport && localImport !== node;
|
||||
return t.isIdentifier(node) && _.has(localImports, node.name) && localImports[node.name] !== node;
|
||||
};
|
||||
|
||||
var check = function (node) {
|
||||
|
||||
Reference in New Issue
Block a user