From c4e56894d96218916d276da75c8391c981e2eaf3 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 9 Feb 2015 20:03:59 +1100 Subject: [PATCH] ignore hoisted kind when checking for block scoped collisions --- 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 73df51e376..af676612d5 100644 --- a/lib/6to5/traversal/scope.js +++ b/lib/6to5/traversal/scope.js @@ -195,7 +195,7 @@ Scope.prototype.register = function (node, reference, kind) { for (var key in ids) { var id = ids[key]; - this.checkBlockScopedCollisions(key, id); + if (kind !== "hoisted") this.checkBlockScopedCollisions(key, id); this.registerType(key, id, node); this.bindings[key] = id;