Skip to content

Commit

Permalink
Fixup: undo incorrect variable de-duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jul 6, 2020
1 parent 94fdc95 commit 2b6dbe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-plugin-transform-block-scoping/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,11 @@ class BlockScoping {
this.scope.parentHasBinding(id.name)
) {
outsideRefs.delete(id.name);
this.letReferences.delete(id.name);

this.scope.rename(id.name);

this.letReferences.set(id.name, id);
outsideRefs.set(id.name, id);
}
}
Expand Down

0 comments on commit 2b6dbe4

Please sign in to comment.