Skip to content
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

[a, ..., b] = c doesn't declare ref #1139

Closed
edemaine opened this issue Apr 2, 2024 · 0 comments
Closed

[a, ..., b] = c doesn't declare ref #1139

edemaine opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@edemaine
Copy link
Collaborator

edemaine commented Apr 2, 2024

[a, ..., b] = c transpiles to [a, ...ref] = c, [b] = ref.splice(-1), with no declaration of ref.

The path being followed here:

  • BindingElement
  • BindingRestElement
  • EmptyBindingPattern creates a ref, but no process function declares these refs. (It works in the context of pattern matching.)
@edemaine edemaine added the bug Something isn't working label Apr 2, 2024
@STRd6 STRd6 closed this as completed in 93fe16d Jul 9, 2024
STRd6 added a commit that referenced this issue Jul 9, 2024
Hoist array binding and rest ref declarations. Fixes #1139. Fixes #1312
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant