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
Fix destructuring assignment in arrow functions without block #8916
Fix destructuring assignment in arrow functions without block #8916
Conversation
RubenVerborgh
commented
Oct 23, 2018
•
edited
edited
Q | A |
---|---|
Fixed Issues? | Fixes #8912 |
Patch: Bug Fix? | 👍 |
Major: Breaking Change? | 👎 |
Minor: New Feature? | 👎 |
Tests Added + Pass? | 👍 |
Documentation PR Link | n/a |
Any Dependency Changes? | 👎 |
License | MIT |
- In Destructuring array assignment fails in arrow functions without block #8912, I reported that destructuring array assignment fails in arrow functions without a block.
- This pull requests adds fixtures for that case, as well as the neighboring case of arrow functions with block.
- It transforms such blockless functions into functions with a block and a return statement.
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9280/ |
...plugin-proposal-class-properties/test/fixtures/private-loose/non-block-arrow-func/output.mjs
Outdated
Show resolved
Hide resolved
@loganfsmyth Wrapping the body means making the |
Thank you! |