We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have an issue using let.
Here is my code:
if (a === b ) { let defaultReturnAddress = {}; let returnAddress = _this.get('currentUser.address'); ... } if (defaultReturnAddress) {...}
Here is the translation using ember-cli-babel@5.1.5
if (a === b ) { var _defaultReturnAddress = {}; var returnAddress = _this.get('currentUser.address'); ... } if (defaultReturnAddress) {...}
It seems to be linked to this error on babel #166. This error was closed a while ago. However, it seems to be a Babel issue.
The text was updated successfully, but these errors were encountered:
What's the issue here? let is block scoped, it seems to be having correctly. What output are you expecting?
let
Sorry, something went wrong.
The if block is a scope by itself ? I would have except var defaultReturnAddress
var defaultReturnAddress
let is called a block scoped variable so yeah let is bound to it. Closing as this isn't an issue and is expected behaviour.
No branches or pull requests
I have an issue using let.
Here is my code:
Here is the translation using ember-cli-babel@5.1.5
It seems to be linked to this error on babel #166.
This error was closed a while ago. However, it seems to be a Babel issue.
The text was updated successfully, but these errors were encountered: