add back loop ensure block
This commit is contained in:
parent
49cdacbcb4
commit
c8c667bf16
@ -37,6 +37,7 @@ exports.VariableDeclaration = function (node, parent) {
|
||||
exports.Loop = function (node, parent, file, scope) {
|
||||
var init = node.left || node.init;
|
||||
if (isLet(init, node)) {
|
||||
t.ensureBlock(node);
|
||||
node.body._letDeclars = [init];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user