From f63ce4ddd4f775c5db2b2311e8a375f566cf33e6 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 22 Jan 2015 17:20:05 +1100 Subject: [PATCH] rename _letDeclars to _letDeclarators in es6 block scoping transformer --- lib/6to5/transformation/transformers/es6/block-scoping.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; //