Skip to content

Binding fixes#1182

Merged
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
tomblind:binding-fixes
Dec 2, 2021
Merged

Binding fixes#1182
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
tomblind:binding-fixes

Conversation

@tomblind
Copy link
Copy Markdown
Collaborator

@tomblind tomblind commented Dec 1, 2021

This fixes a couple of issues with binding patterns introduced by preceding statements.

Fixes #1177

Also fixes this case: Playground
In this instance, aside from the issue with the binding variable not being generated inside the loop's scope, an additional bug was found that has apparently always existed where the local would be stripped off from the loop variable because it was falsely seen as being global in scope (because it was transformed before entering the loops body).

@Zamiell
Copy link
Copy Markdown
Contributor

Zamiell commented Dec 1, 2021

thank you tom!

@Perryvw Perryvw merged commit 1f3a505 into TypeScriptToLua:master Dec 2, 2021
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.

Local variable for parameter destructuring appears in wrong location, if variable is used as spread parameter

3 participants