coffeescript
coffeescript copied to clipboard
Bug: Re-ordered nested non-end BindingRestElement doesn't get transpiled
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:
@ljluestc Are you a bot?