Merge pull request #3346 from schmod/T7091

rename scope bindings during block scope transform
This commit is contained in:
Amjad Masad
2016-02-12 12:12:39 -08:00

View File

@@ -93,7 +93,7 @@ function replace(path, node, scope, remaps) {
let ownBinding = scope.getBindingIdentifier(node.name);
if (ownBinding === remap.binding) {
node.name = remap.uid;
scope.rename(node.name, remap.uid);
} else {
// scope already has it's own binding that doesn't
// match the one we have a stored replacement for