check parent for variable collisions when remapping closurified block scopes - fixes #915, closes #922
This commit is contained in:
@@ -327,7 +327,7 @@ class BlockScoping {
|
||||
for (var name in outsideRefs) {
|
||||
var id = outsideRefs[name];
|
||||
|
||||
if (this.scope.hasGlobal(id.name)) {
|
||||
if (this.scope.hasGlobal(id.name) || this.scope.parentHasBinding(id.name)) {
|
||||
delete outsideRefs[id.name];
|
||||
delete this.letReferences[id.name];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user