-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Fully implement the spread operator #619
Comments
@elasmojs could you add more information? |
@jasonwilliams it is directly from the MDN javascript docs, I have use the first demo example in the link below, hope it helps |
The spread operator is not implemented afaik. It just returns the element once. |
I can grab this issue |
Can i get some guidance on this. I can see that we parse a Spread object. But if i understand correctly the spec defines different behaviour on spreads depending on the context (in function calls, array inits, object inits). I think i need to divide Spread object and change the parsing logic to make them 3 different AST objects. But i am not sure about this. Also i think debugging.md is a bit outdated it can can dump ast (you need to pass an argument) but it cant find --dump-tokens flag. I can refactor it (and maybe use pico_args for that since clap slows down compile times a lot) |
Spread operator is implemented for the arrays, it was partially working before in a wrong implementation, so I did a fix to make a more proper implementation in #811. Can a member of |
Hi
console.log(sum.apply(null, numbers));
expected output: 6
got: undefined
thanks
The text was updated successfully, but these errors were encountered: