Can't use object-rest-spread in a function
tolmasky opened this issue · comments
function x()
{
var a = ({ ...rest } = something);
}
If you comment out "function x()" it works fine. The actual example from my code was
function *x() { yield { capture:({ ...rest } = s) } }
Input Code
var your => (code) => here;
Babylon/Babel Configuration
plugins:["objectRestSpread"] for parser.
and transform-object-rest-spread.
Hey @tolmasky! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.
@babel-bot move to babel/babel.
Ugh, @babel-bot fail.
@babel-bot move to babel/babel
Hey @tolmasky! I've moved your issue to the correct repository. Please make sure to keep an eye on the new issue for the latest information.
@hzoo bot?