Rafael de Oleza 22bcfbe469 Fix path.scope.rename() to not change break clauses (#8478)
* Make labels on break and continue statements not referenced

* Add test for imports and labels with the same name
2018-08-23 14:20:57 -07:00

10 lines
137 B
JavaScript

module.exports = function() {
return {
visitor: {
Function(path) {
path.scope.rename("a", "b");
}
}
};
}