ignore hoisted kind when checking for block scoped collisions

This commit is contained in:
Sebastian McKenzie
2015-02-09 20:03:59 +11:00
parent c6f13844ed
commit c4e56894d9

View File

@@ -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;