Merge pull request #3406 from babel/fix-scope-info
Update scope info after block-scoping transform
This commit is contained in:
@@ -71,6 +71,9 @@ export default class Binding {
|
||||
|
||||
reassign(path: Object) {
|
||||
this.constant = false;
|
||||
if (this.constantViolations.indexOf(path) !== -1) {
|
||||
return;
|
||||
}
|
||||
this.constantViolations.push(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user