Merge pull request #3406 from babel/fix-scope-info

Update scope info after block-scoping transform
This commit is contained in:
Amjad Masad
2016-03-08 00:57:18 -08:00
5 changed files with 116 additions and 37 deletions

View File

@@ -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);
}