only check for duplicates for let variables
This commit is contained in:
parent
630bfcc6cd
commit
836bc3a9a4
@ -169,7 +169,7 @@ var programReferenceVisitor = {
|
||||
var blockVariableVisitor = {
|
||||
enter: function (node, parent, scope, context, add) {
|
||||
if (t.isBlockScoped(node)) {
|
||||
add(node, false, true);
|
||||
add(node, false, t.isLet(node));
|
||||
} else if (t.isScope(node)) {
|
||||
context.stop();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user