New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let-var renaming can break things #124
Comments
The let scoping transformer is definently very funky at the moment and needs a rewrite. |
Another test case for the rewrite: let n = 42;
function add(n, _n) {
return n + _n;
} 6to5: "use strict";
var _n = 42;
function add(_n, _n) {
return _n + _n;
} 6to5-node:
P.S. This isn't a dealbreaker for me at the moment, and I'm loving the quick fixes/responses! |
Yeah, Thanks for the feedback! |
Fixed when 287cbbb is merged. |
Fixed as of 1.11.0 |
* fix: arrow return type on next line is valid babel/babel-eslint#348 * fix: arrow on line after return type annotation is invalid * lint
Is it possible to turn off the
name
->_name
renaming used forlet
vars?This works in Firefox (and Traceur) but doesn't work with 6to5:
6to5 produces:
Function parameters are affected as well in some circumstances, which could break
Function.toString
hacks (e.g. DI in AngularJS):6to5:
The text was updated successfully, but these errors were encountered: