diff --git a/lib/6to5/transformation/transformers/es6/block-scoping.js b/lib/6to5/transformation/transformers/es6/block-scoping.js index 7778f36db9..45656ff22f 100644 --- a/lib/6to5/transformation/transformers/es6/block-scoping.js +++ b/lib/6to5/transformation/transformers/es6/block-scoping.js @@ -40,7 +40,7 @@ exports.Loop = function (node, parent, scope, context, file) { var init = node.left || node.init; if (isLet(init, node)) { t.ensureBlock(node); - node.body._letDeclars = [init]; + node.body._letDeclarators = [init]; } if (t.isLabeledStatement(parent)) { @@ -260,7 +260,7 @@ var letReferenceBlockVisitor = { LetScoping.prototype.getLetReferences = function () { var block = this.block; - var declarators = block._letDeclars || []; + var declarators = block._letDeclarators || []; var declar; //