change function params binding kind to let

This commit is contained in:
Sebastian McKenzie 2015-02-09 19:45:03 +11:00
parent 8e2df3f1f9
commit 5e81653680

View File

@ -318,7 +318,7 @@ Scope.prototype.crawl = function () {
if (t.isFunction(block)) {
for (i = 0; i < block.params.length; i++) {
this.register(block.params[i], null, "var");
this.register(block.params[i], null, "let");
}
this.traverse(block.body, blockVariableVisitor, this);
}