Skip to content

Commit

Permalink
Fixes babel#10896
Browse files Browse the repository at this point in the history
  • Loading branch information
regiontog committed Jan 14, 2020
1 parent 37af725 commit 5c0b0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-traverse/src/scope/index.js
Expand Up @@ -136,7 +136,7 @@ const collectorVisitor = {
if (!id) return;

const name = id.name;
path.scope.bindings[name] = path.scope.getBinding(name);
path.scope.bindings[name] = path.scope.parent.getBinding(name);
},

Block(path) {
Expand Down

0 comments on commit 5c0b0ac

Please sign in to comment.