change function params binding kind to let
This commit is contained in:
parent
8e2df3f1f9
commit
5e81653680
@ -318,7 +318,7 @@ Scope.prototype.crawl = function () {
|
|||||||
|
|
||||||
if (t.isFunction(block)) {
|
if (t.isFunction(block)) {
|
||||||
for (i = 0; i < block.params.length; i++) {
|
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);
|
this.traverse(block.body, blockVariableVisitor, this);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user