rename _letDeclars to _letDeclarators in es6 block scoping transformer
This commit is contained in:
parent
c4fb5a5e40
commit
f63ce4ddd4
@ -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;
|
||||
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user