add back loop ensure block
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user