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;