Skip to content

Destructuring nothing fix#453

Merged
tomblind merged 4 commits intomasterfrom
destructuring-nothing-fix
Feb 26, 2019
Merged

Destructuring nothing fix#453
tomblind merged 4 commits intomasterfrom
destructuring-nothing-fix

Conversation

@tomblind
Copy link
Copy Markdown
Collaborator

fixes #451
This addresses issues regarding transpiling empty destructuring statements:

const [] = [];

It's only a simple fix that ensures valid lua code is generated. A lot of optimizations could be made to remove useless statements, but would be pretty complex as it's a lot of different special cases.

@tomblind tomblind merged commit 777d62c into master Feb 26, 2019
@tomblind tomblind deleted the destructuring-nothing-fix branch February 26, 2019 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in array destructuring inside AssignmentStatement

2 participants