Only special-case for..on/of declaration hoisting - fixes #1929
This commit is contained in:
@@ -33,8 +33,7 @@ var hoistVariablesVisitor = {
|
||||
}
|
||||
|
||||
// for (var i in test)
|
||||
// for (var i = 0;;)
|
||||
if (t.isFor(parent) && (parent.left === node || parent.init === node)) {
|
||||
if (t.isFor(parent) && parent.left === node) {
|
||||
return node.declarations[0].id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user