make comprehension for-of loop a let

This commit is contained in:
Sebastian McKenzie
2015-01-04 19:42:25 +11:00
parent b5a78355c4
commit 35608d497e

View File

@@ -49,7 +49,7 @@ exports._build = function (node, buildBody) {
}
return t.forOfStatement(
t.variableDeclaration("var", [t.variableDeclarator(self.left)]),
t.variableDeclaration("let", [t.variableDeclarator(self.left)]),
self.right,
t.blockStatement([child])
);