* Use first binding for multiple var declarations Since var declarations after initial binding have no effect, use the first declaration. Fixes #2378 * Include hoisted function bindings * Missing newline in expected.js * Simplify constantViolations in new Binding on existing * clarify comment language
10 lines
137 B
JavaScript
10 lines
137 B
JavaScript
module.exports = function() {
|
|
return {
|
|
visitor: {
|
|
Function(path) {
|
|
path.scope.rename("a", "z");
|
|
}
|
|
}
|
|
};
|
|
}
|