From 5e81653680455979c76836059bb4b9d9bd8805ab Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 9 Feb 2015 19:45:03 +1100 Subject: [PATCH] change function params binding kind to let --- lib/6to5/traversal/scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/traversal/scope.js b/lib/6to5/traversal/scope.js index 5d61ec00ec..e02a4165c0 100644 --- a/lib/6to5/traversal/scope.js +++ b/lib/6to5/traversal/scope.js @@ -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); }