rename _letDeclars to _letDeclarators in es6 block scoping transformer

This commit is contained in:
Sebastian McKenzie 2015-01-22 17:20:05 +11:00
parent c4fb5a5e40
commit f63ce4ddd4

View File

@ -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;
//