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

Bug: Re-ordered nested non-end BindingRestElement doesn't get transpiled #5438

Open
STRd6 opened this issue Dec 2, 2022 · 1 comment
Open

Comments

@STRd6
Copy link
Contributor

STRd6 commented Dec 2, 2022

Input Code

https://coffeescript.org/#try:(%7Ba%2C%20b...%2C%20c%3A%20%5Bd%2C%20...e%2C%20f%5D%7D)%20-%3E%0A%20%20x%0A

({a, b..., c: [d, ...e, f]}) ->

Expected Behavior

var splice = [].splice;
function({a, c: [d, ...e], ...b}) {
  var f;
  [f] = splice.call(e, -1)
}

Current Behavior

(function({
    a,
    c: [d, ...e, f],
    ...b
  }) {});

Possible Solution

Context

Environment

  • CoffeeScript version: 2.7.0
  • Node.js version:
@STRd6
Copy link
Contributor Author

STRd6 commented Sep 9, 2023

@ljluestc Are you a bot?

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

No branches or pull requests

1 participant